summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_pkt.c
diff options
context:
space:
mode:
authordoug <>2015-07-18 23:00:23 +0000
committerdoug <>2015-07-18 23:00:23 +0000
commit310fa0ab1bf7e6d6f3f72822da4f9283d737ed97 (patch)
treef8a8a883ea90e1f11546a703f19d3a42b5d5ce4e /src/lib/libssl/d1_pkt.c
parent789262561876b2fff0d8151c2e3e70736009ff97 (diff)
downloadopenbsd-310fa0ab1bf7e6d6f3f72822da4f9283d737ed97.tar.gz
openbsd-310fa0ab1bf7e6d6f3f72822da4f9283d737ed97.tar.bz2
openbsd-310fa0ab1bf7e6d6f3f72822da4f9283d737ed97.zip
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@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r--src/lib/libssl/d1_pkt.c5
1 files changed, 3 insertions, 2 deletions
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 @@
1/* $OpenBSD: d1_pkt.c,v 1.44 2015/07/18 22:36:55 doug Exp $ */ 1/* $OpenBSD: d1_pkt.c,v 1.45 2015/07/18 23:00:23 doug Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -1018,7 +1018,8 @@ start:
1018 struct hm_header_st msg_hdr; 1018 struct hm_header_st msg_hdr;
1019 1019
1020 /* this may just be a stale retransmit */ 1020 /* this may just be a stale retransmit */
1021 dtls1_get_message_header(rr->data, &msg_hdr); 1021 if (!dtls1_get_message_header(rr->data, &msg_hdr))
1022 return -1;
1022 if (rr->epoch != s->d1->r_epoch) { 1023 if (rr->epoch != s->d1->r_epoch) {
1023 rr->length = 0; 1024 rr->length = 0;
1024 goto start; 1025 goto start;