Skip to content

Commit 0ca1dbd

Browse files
committed
Account for the timeout condition
1 parent 25d888b commit 0ca1dbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/scanner/http/symantec_brightmail_logfile.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def download_file(sid, fname)
118118
}
119119
})
120120

121+
if not res
122+
print_error("#{peer} - Unable to download the file. The server timed out.")
123+
return
121124
if res and res.body.empty?
122125
print_error("#{peer} - File not found or empty.")
123126
return

0 commit comments

Comments
 (0)