simplify the size check for storing a DTLS handshake message fragment

This commit is contained in:
John Safranek 2015-10-19 14:42:30 -07:00
parent 54e06cd04e
commit 2569cd2ca4
1 changed files with 1 additions and 1 deletions

View File

@ -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;