Browse Source

tpws : fix possible null pointer dereference

pull/21/head
bolvan 7 years ago
parent
commit
5124817a41
  1. BIN
      binaries/armhf/tpws
  2. BIN
      binaries/mips32r1-lsb/tpws
  3. BIN
      binaries/mips32r1-msb/tpws
  4. BIN
      binaries/x86_64/tpws
  5. 2
      tpws/tpws.c

BIN
binaries/armhf/tpws

Binary file not shown.

BIN
binaries/mips32r1-lsb/tpws

Binary file not shown.

BIN
binaries/mips32r1-msb/tpws

Binary file not shown.

BIN
binaries/x86_64/tpws

Binary file not shown.

2
tpws/tpws.c

@ -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…
Cancel
Save