diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_utl.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_utl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_utl.c b/src/lib/libcrypto/asn1/tasn_utl.c index ca9ec7a32f..dfa63fb2bc 100644 --- a/src/lib/libcrypto/asn1/tasn_utl.c +++ b/src/lib/libcrypto/asn1/tasn_utl.c | |||
@@ -155,7 +155,7 @@ void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it) | |||
155 | if (enc) | 155 | if (enc) |
156 | { | 156 | { |
157 | if (enc->enc) | 157 | if (enc->enc) |
158 | OPENSSL_free(enc->enc); | 158 | free(enc->enc); |
159 | enc->enc = NULL; | 159 | enc->enc = NULL; |
160 | enc->len = 0; | 160 | enc->len = 0; |
161 | enc->modified = 1; | 161 | enc->modified = 1; |
@@ -171,8 +171,8 @@ int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, | |||
171 | return 1; | 171 | return 1; |
172 | 172 | ||
173 | if (enc->enc) | 173 | if (enc->enc) |
174 | OPENSSL_free(enc->enc); | 174 | free(enc->enc); |
175 | enc->enc = OPENSSL_malloc(inlen); | 175 | enc->enc = malloc(inlen); |
176 | if (!enc->enc) | 176 | if (!enc->enc) |
177 | return 0; | 177 | return 0; |
178 | memcpy(enc->enc, in, inlen); | 178 | memcpy(enc->enc, in, inlen); |