mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 13:32:58 +03:00
tpws : fix possible null pointer dereference
This commit is contained in:
parent
21bc7a8727
commit
5124817a41
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -275,7 +275,7 @@ bool handle_epollin(tproxy_conn_t *conn, int *data_transferred) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.hostnospace && pHost[5] == ' ' && find_host(&pHost,buf,bs))
|
if (params.hostnospace && find_host(&pHost,buf,bs) && pHost[5] == ' ')
|
||||||
{
|
{
|
||||||
p = pHost + 6;
|
p = pHost + 6;
|
||||||
pos = p - buf;
|
pos = p - buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user