]> granicus.if.org Git - curl/commitdiff
fixed the REST again
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Sep 2001 12:01:21 +0000 (12:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Sep 2001 12:01:21 +0000 (12:01 +0000)
tests/ftpserver.pl

index dcc60792cbf8136604b0f1a4e1f143ffaa012950..956ff4d855bf06aaf2e4f707a469dbae546c02f3 100644 (file)
@@ -210,6 +210,7 @@ sub RETR_command {
             # move read pointer forward
             $size -= $rest;
             logmsg "REST $rest was removed from size, makes $size left\n";
+            $rest = 0; # reset REST offset again
         }
         print "150 Binary data connection for $testno () ($size bytes).\r\n";
         logmsg "150 Binary data connection for $testno ($size bytes).\n";