summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/ocsp/ocsp_vfy.c
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2007-03-15 20:03:30 +0000
committersimon <simon@FreeBSD.org>2007-03-15 20:03:30 +0000
commitee48ceb6a84c702d0f80bc72ce8be558bdcb0de3 (patch)
treee7ef8661c43c3081071230f45d641b5d8a756e55 /crypto/openssl/crypto/ocsp/ocsp_vfy.c
parent25dab5b4c1779c970f3c644ff3f37f0c4cb5538d (diff)
downloadFreeBSD-src-ee48ceb6a84c702d0f80bc72ce8be558bdcb0de3.zip
FreeBSD-src-ee48ceb6a84c702d0f80bc72ce8be558bdcb0de3.tar.gz
Vendor import of OpenSSL 0.9.8e.
Diffstat (limited to 'crypto/openssl/crypto/ocsp/ocsp_vfy.c')
-rw-r--r--crypto/openssl/crypto/ocsp/ocsp_vfy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/ocsp/ocsp_vfy.c b/crypto/openssl/crypto/ocsp/ocsp_vfy.c
index 3d58dfb..23ea41c 100644
--- a/crypto/openssl/crypto/ocsp/ocsp_vfy.c
+++ b/crypto/openssl/crypto/ocsp/ocsp_vfy.c
@@ -367,7 +367,7 @@ int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs, X509_STORE *st
return 0;
}
gen = req->tbsRequest->requestorName;
- if (gen->type != GEN_DIRNAME)
+ if (!gen || gen->type != GEN_DIRNAME)
{
OCSPerr(OCSP_F_OCSP_REQUEST_VERIFY, OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE);
return 0;
OpenPOWER on IntegriCloud