From 2569cd2ca43945b390b56b81c9792ab0095204fb Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 19 Oct 2015 14:42:30 -0700 Subject: [PATCH] simplify the size check for storing a DTLS handshake message fragment --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index d48e56030..d0c2258fc 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2416,7 +2416,7 @@ void DtlsMsgSet(DtlsMsg* msg, word32 seq, const byte* data, byte type, word32 fragOffset, word32 fragSz) { if (msg != NULL && data != NULL && msg->fragSz <= msg->sz && - fragOffset <= msg->sz && (fragOffset + fragSz) <= msg->sz) { + (fragOffset + fragSz) <= msg->sz) { msg->seq = seq; msg->type = type;