Skip to content
Snippets Groups Projects
Commit b19cba20 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

If Curl_select() returns with the error bit set, bail out.

parent 315a9c95
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
fd_write = CURL_SOCKET_BAD;
select_res = Curl_select(fd_read, fd_write, 0);
if(select_res & CSELECT_ERR) {
failf(data, "select/poll returned error: %s",
Curl_strerror(conn, Curl_ourerrno()));
return CURLE_SEND_ERROR;
}
do {
/* If we still have reading to do, we check if we have a readable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment