diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-06-10 14:47:29 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-06-10 14:47:29 +0100 |
commit | 7a9d59c148b773f59a41f8697eeecf369a0974c2 (patch) | |
tree | 160b9cdc27e81f8ecb282e2499fea79a5ca65175 /crypto/ocsp/ocsp_ht.c | |
parent | 447280ca7babd7532f23ab7afd9e8393f0b07fc0 (diff) |
Fix null pointer errors.
PR#3394
Diffstat (limited to 'crypto/ocsp/ocsp_ht.c')
-rw-r--r-- | crypto/ocsp/ocsp_ht.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_ht.c b/crypto/ocsp/ocsp_ht.c index a05304748a..bac35f8de1 100644 --- a/crypto/ocsp/ocsp_ht.c +++ b/crypto/ocsp/ocsp_ht.c @@ -571,6 +571,9 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req) ctx = OCSP_sendreq_new(b, path, req, -1); + if (!ctx) + return NULL; + do { rv = OCSP_sendreq_nbio(&resp, ctx); |