summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-07-02 20:16:38 +0200
committerBodo Möller <bodo@openssl.org>2000-07-02 20:16:38 +0200
commit186a6f4876b6800fb0f12ab1f54a44621605dc5d (patch)
treef8810e183a63e110d59d42e7052da6658c5642f2 /crypto/x509v3
parentDon't let top go below zero! (diff)
downloadopenssl-186a6f4876b6800fb0f12ab1f54a44621605dc5d.tar.xz
openssl-186a6f4876b6800fb0f12ab1f54a44621605dc5d.zip
Don't dereference NULL pointers.
Submitted by: bowe@chip.ma.certco.com
Diffstat (limited to 'crypto/x509v3')
-rw-r--r--crypto/x509v3/v3_crld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_crld.c b/crypto/x509v3/v3_crld.c
index 4fd61f2cf3..5ca5373f39 100644
--- a/crypto/x509v3/v3_crld.c
+++ b/crypto/x509v3/v3_crld.c
@@ -87,7 +87,7 @@ static STACK_OF(CONF_VALUE) *i2v_crld(X509V3_EXT_METHOD *method,
int i;
for(i = 0; i < sk_DIST_POINT_num(crld); i++) {
point = sk_DIST_POINT_value(crld, i);
- if(point->distpoint->fullname) {
+ if(point->distpoint && point->distpoint->fullname) {
exts = i2v_GENERAL_NAMES(NULL,
point->distpoint->fullname, exts);
}
@@ -95,7 +95,7 @@ static STACK_OF(CONF_VALUE) *i2v_crld(X509V3_EXT_METHOD *method,
X509V3_add_value("reasons","<UNSUPPORTED>", &exts);
if(point->CRLissuer)
X509V3_add_value("CRLissuer","<UNSUPPORTED>", &exts);
- if(point->distpoint->relativename)
+ if(point->distpoint && point->distpoint->relativename)
X509V3_add_value("RelativeName","<UNSUPPORTED>", &exts);
}
return exts;