curl-library
[PATCH] bugfix: Check and clear all errors, irrespective of socket mask.
From: Björn Stenberg <bjorn_at_haxx.se>
Date: Wed, 30 Oct 2013 21:19:57 +0100
Date: Wed, 30 Oct 2013 21:19:57 +0100
Bug: http://curl.haxx.se/mail/lib-2013-10/0261.html
Reported-by: Kamil Dudka
---
lib/connect.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/lib/connect.c b/lib/connect.c
index 2cf1fc0..6102567 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -788,13 +788,10 @@ CURLcode Curl_is_connected(struct connectdata *conn,
infof(data, "Connection failed\n");
break;
- case CURL_CSELECT_ERR|CURL_CSELECT_OUT:
- (void)verifyconnect(conn->tempsock[i], &error);
- break;
-
default:
- infof(data, "Whut?\n");
- return CURLE_OK;
+ if(result & CURL_CSELECT_ERR)
+ (void)verifyconnect(conn->tempsock[i], &error);
+ break;
}
/*
--
1.7.10.4
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
--xHFwDpU9dbj6ez1V--
Received on 2001-09-17