Don't throw away incomplete SOCKS proxy responses.

Introduced in 9796b9bfa6.
This commit is contained in:
Robert Ransom 2010-12-29 05:19:09 -08:00
parent 524fdeeb1e
commit 305ba230fe

View File

@ -1964,7 +1964,7 @@ fetch_from_evbuffer_socks_client(struct evbuffer *buf, int state,
r = parse_socks_client(data, datalen, state, reason, &drain);
if (drain > 0)
evbuffer_drain(buf, drain);
else
else if (drain < 0)
evbuffer_drain(buf, evbuffer_get_length(buf));
return r;