Fix #4865, undef method 'ancestors' in lib/msf/core/payload_set.rb

Fix #4865
This commit is contained in:
sinn3r 2015-03-05 12:49:51 -06:00
parent cb9922ad39
commit 31191bef39
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class PayloadSet < ModuleSet
next if (handler and not p.handler_klass.ancestors.include?(handler))
# Check to see if the session classes match.
next if (session and not p.session.ancestors.include?(session))
next if (session and p.session and not p.session.ancestors.include?(session))
# Check for matching payload types
next if (payload_type and p.payload_type != payload_type)