diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/ssl/d1_pkt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/d1_pkt.c b/lib/libssl/src/ssl/d1_pkt.c index 1ff664370b4..b26ff2cec23 100644 --- a/lib/libssl/src/ssl/d1_pkt.c +++ b/lib/libssl/src/ssl/d1_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_pkt.c,v 1.44 2015/07/18 22:36:55 doug Exp $ */ +/* $OpenBSD: d1_pkt.c,v 1.45 2015/07/18 23:00:23 doug Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -1018,7 +1018,8 @@ start: struct hm_header_st msg_hdr; /* this may just be a stale retransmit */ - dtls1_get_message_header(rr->data, &msg_hdr); + if (!dtls1_get_message_header(rr->data, &msg_hdr)) + return -1; if (rr->epoch != s->d1->r_epoch) { rr->length = 0; goto start; |