mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 12:10:53 +03:00
nfqws: fallback to unknown proto pos if failed to resolve known proto pos
This commit is contained in:
parent
28797184e4
commit
8bc74333b8
@ -1179,6 +1179,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
|
|||||||
{
|
{
|
||||||
multisplit_count=0;
|
multisplit_count=0;
|
||||||
split_pos = ResolvePos(rdata_payload, rlen_payload, l7proto, spos);
|
split_pos = ResolvePos(rdata_payload, rlen_payload, l7proto, spos);
|
||||||
|
if (!split_pos) split_pos = dp->split_unknown.pos;
|
||||||
DLOG("regular split pos: %zu\n",split_pos);
|
DLOG("regular split pos: %zu\n",split_pos);
|
||||||
if (!split_pos || split_pos>rlen_payload) split_pos=1;
|
if (!split_pos || split_pos>rlen_payload) split_pos=1;
|
||||||
split_pos=pos_normalize(split_pos,reasm_offset,dis->len_payload);
|
split_pos=pos_normalize(split_pos,reasm_offset,dis->len_payload);
|
||||||
|
Loading…
Reference in New Issue
Block a user