make sure sets has something in it. lib/msf/core/exploit.rb sends this a nil if the user didn't specify anything

git-svn-id: file:///home/svn/framework3/trunk@10235 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-09-03 23:48:46 +00:00
parent e42d2c1ef4
commit 0b8eebcace
1 changed files with 2 additions and 0 deletions

View File

@ -756,6 +756,8 @@ module Text
buf = ''
idx = 0
offsets = []
# Make sure there's something in sets even if we were given an explicit nil
sets ||= [ UpperAlpha, LowerAlpha, Numerals ]
sets.length.times { offsets << 0 }