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_cache.c
diff --git
a/crypto/x509v3/pcy_cache.c
b/crypto/x509v3/pcy_cache.c
index 1f942604d8ef75372c61fb7f0c6dcd39912a9708..8e78011858daeefc5dbf69b2d03eb7b4b6e14cd2 100644
(file)
--- a/
crypto/x509v3/pcy_cache.c
+++ b/
crypto/x509v3/pcy_cache.c
@@
-127,7
+127,7
@@
static int policy_cache_new(X509 *x)
CERTIFICATEPOLICIES *ext_cpols = NULL;
POLICY_MAPPINGS *ext_pmaps = NULL;
int i;
- cache = OPENSSL_malloc(sizeof(
X509_POLICY_CACHE
));
+ cache = OPENSSL_malloc(sizeof(
*cache
));
if (!cache)
return 0;
cache->anyPolicy = NULL;