mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Don't throw away incomplete SOCKS proxy responses.
Introduced in 9796b9bfa6
.
This commit is contained in:
parent
524fdeeb1e
commit
305ba230fe
@ -1964,7 +1964,7 @@ fetch_from_evbuffer_socks_client(struct evbuffer *buf, int state,
|
|||||||
r = parse_socks_client(data, datalen, state, reason, &drain);
|
r = parse_socks_client(data, datalen, state, reason, &drain);
|
||||||
if (drain > 0)
|
if (drain > 0)
|
||||||
evbuffer_drain(buf, drain);
|
evbuffer_drain(buf, drain);
|
||||||
else
|
else if (drain < 0)
|
||||||
evbuffer_drain(buf, evbuffer_get_length(buf));
|
evbuffer_drain(buf, evbuffer_get_length(buf));
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user