From: Fabian Keil Date: Sun, 18 Nov 2012 21:42:04 +0000 (+0100) Subject: Get test 2032 working when using valgrind X-Git-Tag: curl-7_28_1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52af6e69f079;p=thirdparty%2Fcurl.git Get test 2032 working when using valgrind If curl_multi_fdset() sets maxfd to -1, the socket detection loop is skipped and thus !found_new_socket is no cause for alarm. --- diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c index cef33069a6..fd64e5f84b 100644 --- a/tests/libtest/libntlmconnect.c +++ b/tests/libtest/libntlmconnect.c @@ -207,7 +207,7 @@ int test(char *url) } if (state == NeedSocketForNewHandle) { - if(!found_new_socket) { + if(maxfd != -1 && !found_new_socket) { fprintf(stderr, "Warning: socket did not open immediately for new " "handle (trying again)\n"); continue;