projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correct d2i/i2d typos.
[oweals/openssl.git]
/
crypto
/
asn1
/
f_int.c
diff --git
a/crypto/asn1/f_int.c
b/crypto/asn1/f_int.c
index 48cc3bfb90d52bb66ca13f0b84d549f3be3f6130..9494e597abc36d6b8c0fd65bd277fb762604a635 100644
(file)
--- a/
crypto/asn1/f_int.c
+++ b/
crypto/asn1/f_int.c
@@
-169,8
+169,7
@@
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
sp=(unsigned char *)OPENSSL_malloc(
(unsigned int)num+i*2);
else
- sp=(unsigned char *)OPENSSL_realloc(s,
- (unsigned int)num+i*2);
+ sp=OPENSSL_realloc_clean(s,slen,num+i*2);
if (sp == NULL)
{
ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);