diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/f_int.c')
-rw-r--r-- | src/lib/libcrypto/asn1/f_int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/f_int.c b/src/lib/libcrypto/asn1/f_int.c index 8b92fad9df..977e3d01b7 100644 --- a/src/lib/libcrypto/asn1/f_int.c +++ b/src/lib/libcrypto/asn1/f_int.c | |||
@@ -157,14 +157,14 @@ int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) | |||
157 | if (num+i > slen) | 157 | if (num+i > slen) |
158 | { | 158 | { |
159 | if (s == NULL) | 159 | if (s == NULL) |
160 | sp=(unsigned char *)OPENSSL_malloc( | 160 | sp=(unsigned char *)malloc( |
161 | (unsigned int)num+i*2); | 161 | (unsigned int)num+i*2); |
162 | else | 162 | else |
163 | sp=OPENSSL_realloc_clean(s,slen,num+i*2); | 163 | sp=OPENSSL_realloc_clean(s,slen,num+i*2); |
164 | if (sp == NULL) | 164 | if (sp == NULL) |
165 | { | 165 | { |
166 | ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); | 166 | ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); |
167 | if (s != NULL) OPENSSL_free(s); | 167 | if (s != NULL) free(s); |
168 | goto err; | 168 | goto err; |
169 | } | 169 | } |
170 | s=sp; | 170 | s=sp; |