Fix inverted logic when checking for module load success

[#36737359]

klass should have gone to klass.nil? and and to or when I changed the
test from if to unless.
unstable
Luke Imhoff 2012-10-04 11:22:57 -05:00
parent fb266d5eb9
commit ff46b15871
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class Msf::ModuleSet < Hash
end
# If the klass is valid for this name, try to create it
unless klass and klass == Msf::SymbolicModule
unless klass.nil? or klass == Msf::SymbolicModule
instance = klass.new
end