projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove malloc casts
[openssl.git]
/
crypto
/
asn1
/
f_int.c
diff --git
a/crypto/asn1/f_int.c
b/crypto/asn1/f_int.c
index 4a81f81c8832c06f21b4c3932d62e9f6de29a82d..39c9a61e598121a09507a7807392ee5271753d32 100644
(file)
--- a/
crypto/asn1/f_int.c
+++ b/
crypto/asn1/f_int.c
@@
-166,8
+166,7
@@
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
i /= 2;
if (num + i > slen) {
if (s == NULL)
- sp = (unsigned char *)OPENSSL_malloc((unsigned int)num +
- i * 2);
+ sp = OPENSSL_malloc((unsigned int)num + i * 2);
else
sp = OPENSSL_realloc_clean(s, slen, num + i * 2);
if (sp == NULL) {