diff --git a/modules/auxiliary/scanner/smb/smb_enum_gpp.rb b/modules/auxiliary/scanner/smb/smb_enum_gpp.rb index 30be02a30316..ee138d8c0853 100644 --- a/modules/auxiliary/scanner/smb/smb_enum_gpp.rb +++ b/modules/auxiliary/scanner/smb/smb_enum_gpp.rb @@ -202,7 +202,7 @@ def run_host(ip) end rescue ::Exception => e print_error("#{simple.address}: #{e.class} #{e}") - u ensure + ensure disconnect end end