diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2010-12-29 05:19:09 -0800 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2010-12-29 05:55:45 -0800 |
commit | 305ba230fef87c072e31ed4fc5acfa2d371e948c (patch) | |
tree | eaaf7bd5db4bb96c1a806afe82369729bb8becf4 /src/or/buffers.c | |
parent | 524fdeeb1ec6c1d84c75a793b6feba1f7d9d88cf (diff) | |
download | tor-305ba230fef87c072e31ed4fc5acfa2d371e948c.tar.gz tor-305ba230fef87c072e31ed4fc5acfa2d371e948c.zip |
Don't throw away incomplete SOCKS proxy responses.
Introduced in 9796b9bfa6a757780d6185547e4baf739c53cdac.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 81d54d648f..4e525db1b3 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -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; |