Skip to content

Commit 7a9d59c

Browse files
committed
Fix null pointer errors.
PR#3394
1 parent 447280c commit 7a9d59c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crypto/ocsp/ocsp_ht.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
571571

572572
ctx = OCSP_sendreq_new(b, path, req, -1);
573573

574+
if (!ctx)
575+
return NULL;
576+
574577
do
575578
{
576579
rv = OCSP_sendreq_nbio(&resp, ctx);

ssl/d1_both.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,8 @@ dtls1_buffer_message(SSL *s, int is_ccs)
10511051
OPENSSL_assert(s->init_off == 0);
10521052

10531053
frag = dtls1_hm_fragment_new(s->init_num, 0);
1054+
if (!frag)
1055+
return 0;
10541056

10551057
memcpy(frag->fragment, s->init_buf->data, s->init_num);
10561058

0 commit comments

Comments
 (0)