check nil

git-svn-id: file:///home/svn/framework3/trunk@14062 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-10-25 16:19:55 +00:00
parent 7ba5a8ec4e
commit 2b46420b36
1 changed files with 1 additions and 1 deletions

View File

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