summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/pcy_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509v3/pcy_cache.c')
-rw-r--r--crypto/x509v3/pcy_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/pcy_cache.c b/crypto/x509v3/pcy_cache.c
index 1f942604d8..8e78011858 100644
--- 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;