Don't modify argument in place
parent
971120ce98
commit
7e559f7b13
|
@ -43,8 +43,7 @@ module Msf::DBManager::ExploitAttempt
|
||||||
|
|
||||||
# Look up the service as appropriate
|
# Look up the service as appropriate
|
||||||
if port and svc.nil?
|
if port and svc.nil?
|
||||||
opts[:proto] ||= prot
|
svc = get_service(wspace, host, prot, port)
|
||||||
svc = opts[:service] = get_service(wspace, host, prot, port)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Look up the host as appropriate
|
# Look up the host as appropriate
|
||||||
|
@ -58,6 +57,9 @@ module Msf::DBManager::ExploitAttempt
|
||||||
|
|
||||||
# Bail if we dont have a host object
|
# Bail if we dont have a host object
|
||||||
return if not host
|
return if not host
|
||||||
|
|
||||||
|
opts = opts.dup
|
||||||
|
opts[:service] = svc
|
||||||
opts[:host] = host
|
opts[:host] = host
|
||||||
|
|
||||||
do_report_failure_or_success(opts)
|
do_report_failure_or_success(opts)
|
||||||
|
|
Loading…
Reference in New Issue