aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto/x509v3/v3_asid.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-11-13 22:35:59 +0000
committerRob Austein <sra@hactrn.net>2006-11-13 22:35:59 +0000
commit7e3f98eaf9e872337685b767bd683062f3b1d0dc (patch)
treef1327d6c05362c517d1e66a73dc37add6e1e5b42 /openssl/trunk/crypto/x509v3/v3_asid.c
parentdf450e2187209d857d16e6e5506fad7e3faf929e (diff)
Back port tweaks to silence compiler warnings.
svn path=/openssl/trunk/crypto/x509v3/v3_addr.c; revision=464
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 ae58d4fa..68e76610 100644
--- a/openssl/trunk/crypto/x509v3/v3_asid.c
+++ b/openssl/trunk/crypto/x509v3/v3_asid.c
@@ -720,6 +720,7 @@ static int v3_asid_validate_path_internal(X509_STORE_CTX *ctx,
*/
if (ext != NULL) {
i = -1;
+ x = NULL;
} else {
i = 0;
x = sk_X509_value(chain, i);
@@ -799,6 +800,7 @@ static int v3_asid_validate_path_internal(X509_STORE_CTX *ctx,
/*
* Trust anchor can't inherit.
*/
+ assert(x != NULL);
if (x->rfc3779_asid != NULL) {
if (x->rfc3779_asid->asnum != NULL &&
x->rfc3779_asid->asnum->type == ASIdentifierChoice_inherit)