From 19cad21a465aa851b73940c2543ef40b34ad453f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 16 Jun 2015 21:49:01 -0700 Subject: [PATCH] fix bug when defragmenting out of order DTLS handshake messages --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 1591acb3f..5e264340b 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2165,8 +2165,8 @@ void DtlsMsgSet(DtlsMsg* msg, word32 seq, const byte* data, byte type, * hash routines look at a defragmented message if it had actually * come across as a single handshake message. */ XMEMCPY(msg->msg + fragOffset, data, fragSz); - c32to24(msg->sz, msg->msg - DTLS_HANDSHAKE_FRAG_SZ); } + c32to24(msg->sz, msg->msg - DTLS_HANDSHAKE_FRAG_SZ); } }