summaryrefslogtreecommitdiff
path: root/crypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-10-07 13:28:46 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-10-11 20:33:57 +0100
commit47c9a1b5096be684c18335137284f0dfcefd12d6 (patch)
treebba555cd24926d82b0698d81c068f9ab92c26453 /crypto/asn1/asn1_lib.c
parenta332635ea0ec7dab14d550c2f151bb4ea8c64f78 (diff)
downloadopenssl-new-47c9a1b5096be684c18335137284f0dfcefd12d6.tar.gz
embed support for ASN1_STRING
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/asn1/asn1_lib.c')
-rw-r--r--crypto/asn1/asn1_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c
index 3b366449a9..12248dbf78 100644
--- a/crypto/asn1/asn1_lib.c
+++ b/crypto/asn1/asn1_lib.c
@@ -363,7 +363,8 @@ void ASN1_STRING_free(ASN1_STRING *a)
return;
if (!(a->flags & ASN1_STRING_FLAG_NDEF))
OPENSSL_free(a->data);
- OPENSSL_free(a);
+ if (!(a->flags & ASN1_STRING_FLAG_EMBED))
+ OPENSSL_free(a);
}
void ASN1_STRING_clear_free(ASN1_STRING *a)