Don't modify argument in place

bug/bundler_fix
James Lee 2015-03-31 10:16:14 -05:00
parent 971120ce98
commit 7e559f7b13
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 4 additions and 2 deletions

View File

@ -43,8 +43,7 @@ module Msf::DBManager::ExploitAttempt
# Look up the service as appropriate
if port and svc.nil?
opts[:proto] ||= prot
svc = opts[:service] = get_service(wspace, host, prot, port)
svc = get_service(wspace, host, prot, port)
end
# Look up the host as appropriate
@ -58,6 +57,9 @@ module Msf::DBManager::ExploitAttempt
# Bail if we dont have a host object
return if not host
opts = opts.dup
opts[:service] = svc
opts[:host] = host
do_report_failure_or_success(opts)