check nil
git-svn-id: file:///home/svn/framework3/trunk@14062 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7ba5a8ec4e
commit
2b46420b36
|
@ -89,7 +89,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'uri' => uri,
|
||||
}, 3)
|
||||
|
||||
if (not res.headers['Set-Cookie'])
|
||||
if (res.nil? or not res.headers['Set-Cookie'])
|
||||
print_error("Could not generate a valid session")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue