1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-19 03:42:57 +03:00

nfqws: fix uninitialized pointer crash

This commit is contained in:
bol-van 2024-10-31 12:17:00 +03:00
parent 34e632a1f8
commit e0f8ff06b9
15 changed files with 1 additions and 2 deletions
binaries
aarch64
arm
freebsd-x64
mips32r1-lsb
mips32r1-msb
mips64r2-msb
ppc
win32
win64
x86
x86_64
nfq

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -849,7 +849,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
size_t fake_size;
char host[256];
bool bHaveHost=false;
uint8_t *p, *phost;
uint8_t *p, *phost=NULL;
const uint8_t *rdata_payload = data_payload;
size_t rlen_payload = len_payload;
size_t split_pos;
@ -1097,7 +1097,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
}
ttl_fake = (ctrack_replay && ctrack_replay->autottl) ? ctrack_replay->autottl : (ip6hdr ? (dp->desync_ttl6 ? dp->desync_ttl6 : ttl_orig) : (dp->desync_ttl ? dp->desync_ttl : ttl_orig));
if ((l7proto == HTTP) && (dp->hostcase || dp->hostnospace || dp->domcase) && HttpFindHost(&phost,data_payload,len_payload))
{
if (dp->hostcase)