From 310fa0ab1bf7e6d6f3f72822da4f9283d737ed97 Mon Sep 17 00:00:00 2001 From: doug <> Date: Sat, 18 Jul 2015 23:00:23 +0000 Subject: Convert dtls1_get_message_header to CBS and change to int. Changed return value from void to int. It should never return an error given that the input length is not checked yet. ok miod@ --- src/lib/libssl/d1_pkt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/d1_pkt.c') diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index 1ff664370b..b26ff2cec2 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/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; -- cgit v1.2.3-55-g6feb