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
parent
fb266d5eb9
commit
ff46b15871
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue