Skip to content

Commit 8d78135

Browse files
author
Brent Cook
committed
pass down the workspace for the other opt_to_* methods
1 parent f2504b8 commit 8d78135

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/msf/core/rpc/v10/rpc_db.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,14 +1066,14 @@ def rpc_del_vuln(xopts)
10661066
vulns = []
10671067

10681068
if opts[:host] or opts[:address] or opts[:addresses]
1069-
hosts = opts_to_hosts(opts)
1069+
hosts = opts_to_hosts(xopts)
10701070
end
10711071

10721072
if opts[:port] or opts[:proto]
10731073
if opts[:host] or opts[:address] or opts[:addresses]
1074-
services = opts_to_services(hosts,opts)
1074+
services = opts_to_services(hosts,xopts)
10751075
else
1076-
services = opts_to_services([],opts)
1076+
services = opts_to_services([],xopts)
10771077
end
10781078
end
10791079

@@ -1682,7 +1682,7 @@ def rpc_del_client(xopts)
16821682
clients = []
16831683

16841684
if opts[:host] or opts[:address] or opts[:addresses]
1685-
hosts = opts_to_hosts(opts)
1685+
hosts = opts_to_hosts(xopts)
16861686
else
16871687
hosts = wspace.hosts
16881688
end

0 commit comments

Comments
 (0)