Fix null pointer errors.
PR#3394 (Imported from upstream's cea5a1d5f255a6a186cd7944c4a312612da965f3)
This commit is contained in:
parent
8314351bcc
commit
e044fe4bc7
@ -1054,6 +1054,8 @@ dtls1_buffer_message(SSL *s, int is_ccs)
|
||||
assert(s->init_off == 0);
|
||||
|
||||
frag = dtls1_hm_fragment_new(s->init_num, 0);
|
||||
if (!frag)
|
||||
return 0;
|
||||
|
||||
memcpy(frag->fragment, s->init_buf->data, s->init_num);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user