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)
|
res = send_request_cook('Off', 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
time = res.get_xml_document.at('//time')
|
unless res && res.code == 200 && (time = res.get_xml_document.at('//time'))
|
||||||
|
|
||||||
unless res && res.code == 200 && time
|
|
||||||
print_error("Failed to #{action.name.downcase}, aborting!")
|
print_error("Failed to #{action.name.downcase}, aborting!")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue