aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/ftpserver.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index dcc60792c..956ff4d85 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -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";