Fix misplaced error check in Crock-Pot module
parent
fb347300a3
commit
a9f72a39d0
|
@ -88,9 +88,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
res = send_request_cook('Off', 0)
|
||||
end
|
||||
|
||||
time = res.get_xml_document.at('//time')
|
||||
|
||||
unless res && res.code == 200 && time
|
||||
unless res && res.code == 200 && (time = res.get_xml_document.at('//time'))
|
||||
print_error("Failed to #{action.name.downcase}, aborting!")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue