Skip to content

Commit ef948cc

Browse files
committed
Fix rapid7#9417, map timeout exp to a var for telnet_encrypt_overflow
Fix rapid7#9417
1 parent 9611bfd commit ef948cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def run_host(ip)
127127
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET => e
128128
print_error("A network issue has occurred: #{e.message}")
129129
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}")
130-
rescue Timeout::Error
130+
rescue Timeout::Error => e
131131
print_error("#{target_host}:#{rport} Timed out after #{to} seconds")
132132
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}")
133133
rescue ::Exception => e

0 commit comments

Comments
 (0)