diff options
author | Kamil Dudka <kdudka@redhat.com> | 2012-10-15 21:42:33 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2012-11-19 13:36:10 +0100 |
commit | 32be348af26352bec0051adcc2f1a718361d9214 (patch) | |
tree | 50a3a4b6873b3c135850d1cfef61bfd5e093a6da /tests/libtest | |
parent | 7e8749921386bfc7785d80369d73546c5f6d1569 (diff) |
test2032: spurious failure caused by premature termination
Bug: http://curl.haxx.se/mail/lib-2012-11/0095.html
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/libntlmconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c index b31a928af..cef33069a 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(!found_new_socket) { fprintf(stderr, "Warning: socket did not open immediately for new " "handle (trying again)\n"); continue; @@ -234,7 +234,7 @@ int test(char *url) /* if there's no timeout and we get here on the last handle, we may already have read the last part of the stream so waiting makes no sense */ - if(num_handles == MAX_EASY_HANDLES) { + if(!running && num_handles == MAX_EASY_HANDLES) { break; } } |