aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto/x509v3/v3_asid.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/trunk/crypto/x509v3/v3_asid.c')
-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);