From 2b46420b3678a2f3e81bc775021400ab9710c7cd Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Tue, 25 Oct 2011 16:19:55 +0000 Subject: [PATCH] check nil git-svn-id: file:///home/svn/framework3/trunk@14062 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/multi/http/phpldapadmin_query_engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/phpldapadmin_query_engine.rb b/modules/exploits/multi/http/phpldapadmin_query_engine.rb index 76504228a3..84aee59d24 100644 --- a/modules/exploits/multi/http/phpldapadmin_query_engine.rb +++ b/modules/exploits/multi/http/phpldapadmin_query_engine.rb @@ -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