Skip to content
Browse files

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.
  • Loading branch information...
1 parent 32be348 commit 52af6e69f079f28c137849e783f41d80768bc1be Fabian Keil committed with kdudka
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/libtest/libntlmconnect.c
View
2 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;

0 comments on commit 52af6e6

Please sign in to comment.
Something went wrong with that request. Please try again.