Skip to content

Commit 8174438

Browse files
committed
Actually fix del_note
1 parent 11f9c01 commit 8174438

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,13 +1146,12 @@ def rpc_del_vuln(xopts)
11461146
def rpc_del_note(xopts)
11471147
::ActiveRecord::Base.connection_pool.with_connection {
11481148
opts, wspace = init_db_opts_workspace(xopts)
1149-
opts[:workspace] = opts[:workspace].name
11501149
hosts = []
11511150
services = []
11521151
notes = []
11531152

11541153
if opts[:host] or opts[:address] or opts[:addresses]
1155-
hosts = opts_to_hosts(opts)
1154+
hosts = opts_to_hosts(xopts)
11561155
end
11571156

11581157
if opts[:port] or opts[:proto]

0 commit comments

Comments
 (0)