diff --git a/lib/select.c b/lib/select.c index 40673ec9e563cc0340155a935928cd5b59061bd5..4196211c0c79c6bf02fd562ab4663da64e7dfb0f 100644 --- a/lib/select.c +++ b/lib/select.c @@ -221,8 +221,10 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ break; if(timeout_ms > 0) { pending_ms = (int)(timeout_ms - elapsed_ms); - if(pending_ms <= 0) + if(pending_ms <= 0) { + r = 0; /* Simulate a "call timed out" case */ break; + } } } while(r == -1);