Fix null pointer errors.
PR#3394 (cherry picked from commit 7a9d59c148b773f59a41f8697eeecf369a0974c2)
This commit is contained in:
parent
18c7f2fce8
commit
aa59369b4c
@ -490,6 +490,9 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req)
|
|||||||
|
|
||||||
ctx = OCSP_sendreq_new(b, path, req, -1);
|
ctx = OCSP_sendreq_new(b, path, req, -1);
|
||||||
|
|
||||||
|
if (!ctx)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
rv = OCSP_sendreq_nbio(&resp, ctx);
|
rv = OCSP_sendreq_nbio(&resp, ctx);
|
||||||
|
@ -1180,6 +1180,8 @@ dtls1_buffer_message(SSL *s, int is_ccs)
|
|||||||
OPENSSL_assert(s->init_off == 0);
|
OPENSSL_assert(s->init_off == 0);
|
||||||
|
|
||||||
frag = dtls1_hm_fragment_new(s->init_num, 0);
|
frag = dtls1_hm_fragment_new(s->init_num, 0);
|
||||||
|
if (!frag)
|
||||||
|
return 0;
|
||||||
|
|
||||||
memcpy(frag->fragment, s->init_buf->data, s->init_num);
|
memcpy(frag->fragment, s->init_buf->data, s->init_num);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user