Added the statement return to condition: if res.nil?

unstable
Roberto Soares Espreto 2013-05-11 00:59:05 -03:00
parent 18ee9af59f
commit a94d078bfd
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class Metasploit3 < Msf::Auxiliary
if res.nil?
print_error("No response for #{target_host}")
return nil
end
temp = JSON.parse(res.body)