Sum the results of the module loaders

Fixes #8229
bug/bundler_fix
Adam Cammack 2017-04-11 23:20:52 -05:00
parent 3cf51b7d43
commit 2d8001aa62
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ module Msf::ModuleManager::Loading
loaders.each do |loader|
if loader.loadable?(path)
count_by_type = loader.load_modules(path, options)
count_by_type.merge!(loader.load_modules(path, options)) do |key, old, new|
old + new
end
end
end