Don't modify argument in place

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

View File

@ -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