mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
better fix for the socket -1 case
This commit is contained in:
parent
6d3114efe2
commit
4382204e1b
@ -291,7 +291,7 @@ static int juggle(curl_socket_t *sockfdp,
|
|||||||
if(-1 == sockfd) {
|
if(-1 == sockfd) {
|
||||||
/* eeek, we are supposedly connected and then this cannot be -1 ! */
|
/* eeek, we are supposedly connected and then this cannot be -1 ! */
|
||||||
logmsg("socket is -1! on %s:%d", __FILE__, __LINE__);
|
logmsg("socket is -1! on %s:%d", __FILE__, __LINE__);
|
||||||
return FALSE;
|
maxfd = 0; /* stdin */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
logmsg("waiting for data from client on socket %d", (int)sockfd);
|
logmsg("waiting for data from client on socket %d", (int)sockfd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user