Handle a rare corner case

bug/bundler_fix
HD Moore 2015-06-06 11:46:19 -05:00
parent 135958a225
commit cec20ec5d9
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ module Metasploit
# Associate the community with the original credential
result_options[:credential] = credential_map[result_options.delete(:community)]
# In the rare chance that we got a result for a community we didn't scan...
next unless result_options[:credential]
# Create, freeze, and yield the result
result = ::Metasploit::Framework::LoginScanner::Result.new(result_options)
result.freeze