projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use safer sizeof variant in malloc
[openssl.git]
/
crypto
/
asn1
/
x_info.c
diff --git
a/crypto/asn1/x_info.c
b/crypto/asn1/x_info.c
index 5b927efc67e8206cd35a0c7f2261aed4949bd135..856bcf58b2ee45e14b273f79477f15b618884beb 100644
(file)
--- a/
crypto/asn1/x_info.c
+++ b/
crypto/asn1/x_info.c
@@
-66,7
+66,7
@@
X509_INFO *X509_INFO_new(void)
{
X509_INFO *ret = NULL;
- ret = OPENSSL_malloc(sizeof(
X509_INFO
));
+ ret = OPENSSL_malloc(sizeof(
*ret
));
if (ret == NULL) {
ASN1err(ASN1_F_X509_INFO_NEW, ERR_R_MALLOC_FAILURE);
return (NULL);