diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c index 87d7dfdf5c..c594db9140 100644 --- a/src/lib/libcrypto/asn1/tasn_dec.c +++ b/src/lib/libcrypto/asn1/tasn_dec.c | |||
@@ -910,7 +910,7 @@ static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, | |||
910 | *in = p; | 910 | *in = p; |
911 | ret = 1; | 911 | ret = 1; |
912 | err: | 912 | err: |
913 | if (free_cont && buf.data) OPENSSL_free(buf.data); | 913 | if (free_cont && buf.data) free(buf.data); |
914 | return ret; | 914 | return ret; |
915 | } | 915 | } |
916 | 916 | ||
@@ -1046,7 +1046,7 @@ int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, | |||
1046 | if (*free_cont) | 1046 | if (*free_cont) |
1047 | { | 1047 | { |
1048 | if (stmp->data) | 1048 | if (stmp->data) |
1049 | OPENSSL_free(stmp->data); | 1049 | free(stmp->data); |
1050 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ | 1050 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ |
1051 | stmp->length = len; | 1051 | stmp->length = len; |
1052 | *free_cont = 0; | 1052 | *free_cont = 0; |