Ensure uniq on #find_msb_numbers

bug/bundler_fix
jvazquez-r7 2015-10-02 11:38:36 -05:00
parent b107213a6e
commit 69f3d88ea6
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ load Metasploit::Framework.root.join('tools/msu_finder.rb').to_path
require 'nokogiri' require 'nokogiri'
require 'uri' require 'uri'
describe MicrosoftPatch do describe MicrosoftPatchFinder do
before(:each) do before(:each) do
cli = Rex::Proto::Http::Client.new('127.0.0.1') cli = Rex::Proto::Http::Client.new('127.0.0.1')

View File

@ -435,7 +435,7 @@ module MicrosoftPatchFinder
end end
rescue RuntimeError => e rescue RuntimeError => e
print_error(e.message) print_error(e.message)
return msb_numbers return msb_numbers.uniq
end end
msb_numbers.uniq msb_numbers.uniq