Don't modify argument in place
parent
7e559f7b13
commit
a1a7faa77a
|
@ -80,6 +80,8 @@ module Msf::DBManager::ExploitAttempt
|
|||
|
||||
# Look up or generate the service as appropriate
|
||||
if port and svc.nil?
|
||||
# it is rude to modify arguments in place
|
||||
opts = opts.dup
|
||||
opts[:proto] ||= "tcp"
|
||||
opts[:service] = report_service(
|
||||
workspace: wspace, host: host, port: port, proto: prot
|
||||
|
|
Loading…
Reference in New Issue