1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

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
This commit is contained in:
James Lee 2010-09-03 23:48:46 +00:00
parent e42d2c1ef4
commit 0b8eebcace

View File

@ -756,6 +756,8 @@ module Text
buf = '' buf = ''
idx = 0 idx = 0
offsets = [] 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 } sets.length.times { offsets << 0 }