summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-06-10 14:47:29 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-06-10 14:48:19 +0100
commit0345354fe0177e73509b4d2979dc6a5f869e9dc6 (patch)
treea78cc604c323f99113102801e8773411117b0f75 /crypto
parent90aef4431b94a93f849e8658196e61db2c227638 (diff)
Fix null pointer errors.
PR#3394 (cherry picked from commit 7a9d59c148b773f59a41f8697eeecf369a0974c2)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ocsp/ocsp_ht.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_ht.c b/crypto/ocsp/ocsp_ht.c
index 92aba08c8f..fb87cd764b 100644
--- a/crypto/ocsp/ocsp_ht.c
+++ b/crypto/ocsp/ocsp_ht.c
@@ -464,6 +464,9 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req)
ctx = OCSP_sendreq_new(b, path, req, -1);
+ if (!ctx)
+ return NULL;
+
do
{
rv = OCSP_sendreq_nbio(&resp, ctx);