]> granicus.if.org Git - curl/commitdiff
Handle short reads
authorDan Fandrich <dan@coneharvesters.com>
Tue, 12 Aug 2008 18:32:55 +0000 (18:32 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 12 Aug 2008 18:32:55 +0000 (18:32 +0000)
tests/libtest/lib556.c

index 22583a2365d5384bf06ccf44196a8ed9eb5a511b..85fd65699879c1c37f95fdb29713aa73514500db 100644 (file)
@@ -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));
     }
   }