Skip to content

Commit

Permalink
Get test 2032 working when using valgrind
Browse files Browse the repository at this point in the history
If curl_multi_fdset() sets maxfd to -1, the socket detection
loop is skipped and thus !found_new_socket is no cause for alarm.
  • Loading branch information
fabiankeil authored and kdudka committed Nov 19, 2012
1 parent 32be348 commit 52af6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/libtest/libntlmconnect.c
Expand Up @@ -207,7 +207,7 @@ int test(char *url)
} }


if (state == NeedSocketForNewHandle) { if (state == NeedSocketForNewHandle) {
if(!found_new_socket) { if(maxfd != -1 && !found_new_socket) {
fprintf(stderr, "Warning: socket did not open immediately for new " fprintf(stderr, "Warning: socket did not open immediately for new "
"handle (trying again)\n"); "handle (trying again)\n");
continue; continue;
Expand Down

0 comments on commit 52af6e6

Please sign in to comment.