diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_new.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_new.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_new.c b/src/lib/libcrypto/asn1/tasn_new.c index 0d9e78cc7c..aab9ef08c4 100644 --- a/src/lib/libcrypto/asn1/tasn_new.c +++ b/src/lib/libcrypto/asn1/tasn_new.c | |||
@@ -160,7 +160,7 @@ static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
160 | } | 160 | } |
161 | if (!combine) | 161 | if (!combine) |
162 | { | 162 | { |
163 | *pval = OPENSSL_malloc(it->size); | 163 | *pval = malloc(it->size); |
164 | if (!*pval) | 164 | if (!*pval) |
165 | goto memerr; | 165 | goto memerr; |
166 | memset(*pval, 0, it->size); | 166 | memset(*pval, 0, it->size); |
@@ -188,7 +188,7 @@ static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
188 | } | 188 | } |
189 | if (!combine) | 189 | if (!combine) |
190 | { | 190 | { |
191 | *pval = OPENSSL_malloc(it->size); | 191 | *pval = malloc(it->size); |
192 | if (!*pval) | 192 | if (!*pval) |
193 | goto memerr; | 193 | goto memerr; |
194 | memset(*pval, 0, it->size); | 194 | memset(*pval, 0, it->size); |
@@ -354,7 +354,7 @@ int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | |||
354 | return 1; | 354 | return 1; |
355 | 355 | ||
356 | case V_ASN1_ANY: | 356 | case V_ASN1_ANY: |
357 | typ = OPENSSL_malloc(sizeof(ASN1_TYPE)); | 357 | typ = malloc(sizeof(ASN1_TYPE)); |
358 | if (!typ) | 358 | if (!typ) |
359 | return 0; | 359 | return 0; |
360 | typ->value.ptr = NULL; | 360 | typ->value.ptr = NULL; |