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
/
x509v3
/
pcy_data.c
diff --git
a/crypto/x509v3/pcy_data.c
b/crypto/x509v3/pcy_data.c
index 37c867ef9140bf045d97d1281ed1123561231a79..ef6edb1fe5ad38ed54d1cc70aa59a2ae695d9479 100644
(file)
--- a/
crypto/x509v3/pcy_data.c
+++ b/
crypto/x509v3/pcy_data.c
@@
-98,7
+98,7
@@
X509_POLICY_DATA *policy_data_new(POLICYINFO *policy,
return NULL;
} else
id = NULL;
- ret = OPENSSL_malloc(sizeof(
X509_POLICY_DATA
));
+ ret = OPENSSL_malloc(sizeof(
*ret
));
if (!ret)
return NULL;
ret->expected_policy_set = sk_ASN1_OBJECT_new_null();