From: Dan Fandrich Date: Tue, 12 Aug 2008 18:32:55 +0000 (+0000) Subject: Handle short reads X-Git-Tag: curl-7_19_0~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ee7a014c90772a891a89ef02b0890b867e9ddbc;p=thirdparty%2Fcurl.git Handle short reads --- diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index 22583a2365..85fd656998 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -54,7 +54,7 @@ int test(char *URL) total += iolen; - } while((res == CURLE_AGAIN) && (total < 129)); + } while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129)); } }