mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
parent
4476638d0e
commit
08399da6cb
5 changed files with 44 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue