Added the statement return to condition: if res.nil?
parent
18ee9af59f
commit
a94d078bfd
|
@ -41,6 +41,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
if res.nil?
|
if res.nil?
|
||||||
print_error("No response for #{target_host}")
|
print_error("No response for #{target_host}")
|
||||||
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
temp = JSON.parse(res.body)
|
temp = JSON.parse(res.body)
|
||||||
|
|
Loading…
Reference in New Issue