diff options
author | Adam Langley <agl@chromium.org> | 2014-06-20 23:00:00 +0400 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2014-06-21 00:17:42 +0400 |
commit | e044fe4bc773061589d40bf56011843570fd63aa (patch) | |
tree | f2d380c6f03e7d59cbde55edd85a14409fba06d4 /ssl/d1_both.c | |
parent | 8314351bcca46f175e305ba18a5e0040ce06034f (diff) |
Fix null pointer errors.
PR#3394
(Imported from upstream's cea5a1d5f255a6a186cd7944c4a312612da965f3)
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 85ea1305..9420e920 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -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); |