mirror of
https://github.com/curl/curl.git
synced 2026-05-19 06:46:20 +03:00
if we read zero bytes from the proxy, the connection is broken and we need
to bail out
This commit is contained in:
parent
e71378d3c8
commit
48064f8dee
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,11 @@ static int blockread_all(struct connectdata *conn, /* connection data */
|
|||
result = CURLE_OK;
|
||||
break;
|
||||
}
|
||||
if(!nread) {
|
||||
result = ~CURLE_OK;
|
||||
break;
|
||||
}
|
||||
|
||||
buffersize -= nread;
|
||||
buf += nread;
|
||||
allread += nread;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue