diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/f_int.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/f_int.c b/src/lib/libcrypto/asn1/f_int.c index cd57331c3f..6b090f6740 100644 --- a/src/lib/libcrypto/asn1/f_int.c +++ b/src/lib/libcrypto/asn1/f_int.c | |||
@@ -160,15 +160,15 @@ int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) | |||
160 | if (num+i > slen) | 160 | if (num+i > slen) |
161 | { | 161 | { |
162 | if (s == NULL) | 162 | if (s == NULL) |
163 | sp=(unsigned char *)Malloc( | 163 | sp=(unsigned char *)OPENSSL_malloc( |
164 | (unsigned int)num+i*2); | 164 | (unsigned int)num+i*2); |
165 | else | 165 | else |
166 | sp=(unsigned char *)Realloc(s, | 166 | sp=(unsigned char *)OPENSSL_realloc(s, |
167 | (unsigned int)num+i*2); | 167 | (unsigned int)num+i*2); |
168 | if (sp == NULL) | 168 | if (sp == NULL) |
169 | { | 169 | { |
170 | ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); | 170 | ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); |
171 | if (s != NULL) Free(s); | 171 | if (s != NULL) OPENSSL_free(s); |
172 | goto err; | 172 | goto err; |
173 | } | 173 | } |
174 | s=sp; | 174 | s=sp; |