Skip to content

Commit 095431c

Browse files
David MaloneyDavid Maloney
authored andcommitted
fix note search conditions
note search conditions needed to know about vuln_id or else vuln notes would get overwritten MSP-12183
1 parent a72d496 commit 095431c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/msf/core/db_manager/note.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def report_note(opts)
124124
conditions = { :ntype => ntype }
125125
conditions[:host_id] = host[:id] if host
126126
conditions[:service_id] = service[:id] if service
127+
conditions[:vuln_id] = opts[:vuln_id]
127128

128129
case mode
129130
when :unique

0 commit comments

Comments
 (0)