Wrong order. Should check nil first, and then ""

git-svn-id: file:///home/svn/framework3/trunk@13454 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-07-31 19:02:40 +00:00
parent c59a51667d
commit 2078b874af
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Post
print_status("Looking at Key #{hive['HKU']}")
begin
subkeys = registry_enumkeys("#{hive['HKU']}\\Software\\FTPware\\CoreFTP\\Sites")
if subkeys.empty? or subkeys.nil?
if subkeys.nil? or subkeys.empty?
print_status ("CoreFTP not installed for this user.")
return
end