aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-08-01 23:45:36 +0000
committerRob Austein <sra@hactrn.net>2006-08-01 23:45:36 +0000
commit978e60e195a6e263327c1e62daabeb7cc0369553 (patch)
tree58c743a2b0edfc22f6fc9d0e6d4f73983c764a01 /openssl/trunk/crypto
parent73e44be9acd8ca95e79d8c03400525e65d4767b4 (diff)
Fix double-free bugs.
svn path=/openssl/trunk/crypto/x509v3/v3_asid.c; revision=132
Diffstat (limited to 'openssl/trunk/crypto')
-rw-r--r--openssl/trunk/crypto/x509v3/v3_asid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_asid.c b/openssl/trunk/crypto/x509v3/v3_asid.c
index 25b154be..aeb56bb4 100644
--- a/openssl/trunk/crypto/x509v3/v3_asid.c
+++ b/openssl/trunk/crypto/x509v3/v3_asid.c
@@ -568,6 +568,7 @@ int v3_asid_validate_path(X509_STORE_CTX *ctx)
switch (asid->asnum->type) {
case ASIdentifierChoice_asIdsOrRanges:
parent_as = asid->asnum->u.asIdsOrRanges;
+ asid->asnum->u.asIdsOrRanges = NULL;
break;
case ASIdentifierChoice_inherit:
validation_err(X509_V_ERR_UNNESTED_RESOURCE);
@@ -578,6 +579,7 @@ int v3_asid_validate_path(X509_STORE_CTX *ctx)
switch (asid->rdi->type) {
case ASIdentifierChoice_asIdsOrRanges:
parent_rdi = asid->rdi->u.asIdsOrRanges;
+ asid->rdi->u.asIdsOrRanges = NULL;
break;
case ASIdentifierChoice_inherit:
validation_err(X509_V_ERR_UNNESTED_RESOURCE);