diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ht.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libcrypto/ocsp/ocsp_ht.c b/lib/libcrypto/ocsp/ocsp_ht.c index fe4a7a1a72d..7f73a4195cf 100644 --- a/lib/libcrypto/ocsp/ocsp_ht.c +++ b/lib/libcrypto/ocsp/ocsp_ht.c @@ -160,6 +160,8 @@ OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, int maxline) OCSP_REQ_CTX *rctx; rctx = malloc(sizeof(OCSP_REQ_CTX)); + if (rctx == NULL) + return 0; rctx->state = OHS_ERROR; rctx->mem = BIO_new(BIO_s_mem()); rctx->io = io; |