commit | 48064f8deefd5424591a1caeb4ddf6ae9754679a | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Tue Jun 05 13:42:23 2007 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Tue Jun 05 13:42:23 2007 +0000 |
tree | 46c2a42230ae26f5bc948cd771ffad2ce1461adc | |
parent | e71378d3c83c43517e86d2ae792445301fd58aa6 [diff] |
if we read zero bytes from the proxy, the connection is broken and we need to bail out
diff --git a/lib/socks.c b/lib/socks.c index 6b95e75..e1ad86c 100644 --- a/lib/socks.c +++ b/lib/socks.c
@@ -98,6 +98,11 @@ result = CURLE_OK; break; } + if(!nread) { + result = ~CURLE_OK; + break; + } + buffersize -= nread; buf += nread; allread += nread;