projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix threading issue that at best will leak memory
[openssl.git]
/
crypto
/
x509v3
/
pcy_cache.c
diff --git
a/crypto/x509v3/pcy_cache.c
b/crypto/x509v3/pcy_cache.c
index e254142c0f6af7a31763b8d535210224ce81510c..a9ee30a8d9135636020d5cef7ee3e8e4f6818b09 100644
(file)
--- a/
crypto/x509v3/pcy_cache.c
+++ b/
crypto/x509v3/pcy_cache.c
@@
-78,6
+78,9
@@
static int policy_cache_new(X509 *x)
CERTIFICATEPOLICIES *ext_cpols = NULL;
POLICY_MAPPINGS *ext_pmaps = NULL;
int i;
+
+ if (x->policy_cache != NULL)
+ return 1;
cache = OPENSSL_malloc(sizeof(*cache));
if (cache == NULL)
return 0;