Files transferred over FTP were showing incorrect sizes.

The server-reported file size was being collected poorly and if
a file name had a number in it, that was reported as the file
size instead of the actual size.

A new test is included to avoid reintroducing the problem.
This commit is contained in:
Seth Hall 2016-03-11 12:56:28 -05:00
parent 4476638d0e
commit 08399da6cb
5 changed files with 44 additions and 8 deletions

View file

@ -213,7 +213,7 @@ event ftp_reply(c: connection, code: count, msg: string, cont_resp: bool) &prior
# on a different file could be checked, but the file size will
# be overwritten by the server response to the RETR command
# if that's given as well which would be more correct.
c$ftp$file_size = extract_count(msg);
c$ftp$file_size = extract_count(msg, F);
}
# PASV and EPSV processing