From aa59369b4ca279d9896d45085e229d9803ad45eb Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 10 Jun 2014 14:47:29 +0100 Subject: Fix null pointer errors. PR#3394 (cherry picked from commit 7a9d59c148b773f59a41f8697eeecf369a0974c2) --- ssl/d1_both.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssl/d1_both.c') diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 04aa23107e..c1eb970a86 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -1180,6 +1180,8 @@ dtls1_buffer_message(SSL *s, int is_ccs) OPENSSL_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); -- cgit v1.2.3