mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
nfqws: remove duplicate check
This commit is contained in:
parent
64406960aa
commit
0887fe6f2a
@ -469,19 +469,15 @@ bool QUICDefragCrypto(const uint8_t *clean,size_t clean_len, uint8_t *defrag,siz
|
|||||||
pos += tvb_get_varint(clean+pos, &sz);
|
pos += tvb_get_varint(clean+pos, &sz);
|
||||||
if ((pos+sz)>clean_len) return false;
|
if ((pos+sz)>clean_len) return false;
|
||||||
|
|
||||||
|
if ((offset+sz)>defrag_data_len) return false;
|
||||||
if (ft==6)
|
if (zeropos < offset)
|
||||||
{
|
// make sure no uninitialized gaps exist in case of not full fragment coverage
|
||||||
if ((offset+sz)>defrag_data_len) return false;
|
memset(defrag_data+zeropos,0,offset-zeropos);
|
||||||
if (zeropos < offset)
|
if ((offset+sz) > zeropos)
|
||||||
// make sure no uninitialized gaps exist in case of not full fragment coverage
|
zeropos=offset+sz;
|
||||||
memset(defrag_data+zeropos,0,offset-zeropos);
|
memcpy(defrag_data+offset,clean+pos,sz);
|
||||||
if ((offset+sz) > zeropos)
|
if ((offset+sz) > szmax) szmax = offset+sz;
|
||||||
zeropos=offset+sz;
|
found=true;
|
||||||
memcpy(defrag_data+offset,clean+pos,sz);
|
|
||||||
if ((offset+sz) > szmax) szmax = offset+sz;
|
|
||||||
found=true;
|
|
||||||
}
|
|
||||||
|
|
||||||
pos+=sz;
|
pos+=sz;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user