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-b9f4589650daunstable
parent
e42d2c1ef4
commit
0b8eebcace
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in New Issue