Fix misplaced error check in Crock-Pot module

master
William Vu 2019-03-04 19:25:56 -06:00
parent fb347300a3
commit a9f72a39d0
1 changed files with 1 additions and 3 deletions

View File

@ -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