mirror of
https://github.com/bol-van/zapret2.git
synced 2026-10-29 06:02:05 +00:00
nfqws2: fix UAF
This commit is contained in:
1 parent
221d7dff24
commit
4a33055448
1 file changed
+8
-3
+8
-3
@@ -1627,9 +1627,7 @@ static uint8_t dpi_desync_tcp_packet_play(
|
||||
{
|
||||
// likely exceeded packet limit or unlikely out of memory
|
||||
DLOG_ERR("rawpacket_queue failed !\n");
|
||||
reasm_client_cancel(ps.ctrack);
|
||||
ps.l7payload = L7P_UNKNOWN; // middle packet may be not L7P_TLS_CLIENT_HELLO
|
||||
goto rediscover;
|
||||
goto reasm_cancel_rediscover;
|
||||
}
|
||||
if (ReasmIsFull(&ps.ctrack->reasm_client))
|
||||
{
|
||||
@@ -1661,6 +1659,13 @@ pass:
|
||||
pass_reasm_cancel:
|
||||
reasm_client_cancel(ps.ctrack);
|
||||
goto pass;
|
||||
|
||||
reasm_cancel_rediscover:
|
||||
reasm_client_cancel(ps.ctrack);
|
||||
rdata_payload = dis->data_payload;
|
||||
rlen_payload = dis->len_payload;
|
||||
ps.l7payload = L7P_UNKNOWN; // could be middle packet
|
||||
goto rediscover;
|
||||
}
|
||||
|
||||
// return : true - should continue, false - should stop with verdict
|
||||
|
||||
Reference in new issue
Block a user