fix note search conditions

note search conditions needed to know about
vuln_id or else vuln notes would get overwritten

MSP-12183
bug/bundler_fix
David Maloney 2015-02-26 15:48:04 -06:00
parent a72d49678a
commit 095431c323
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ module Msf::DBManager::Note
conditions = { :ntype => ntype } conditions = { :ntype => ntype }
conditions[:host_id] = host[:id] if host conditions[:host_id] = host[:id] if host
conditions[:service_id] = service[:id] if service conditions[:service_id] = service[:id] if service
conditions[:vuln_id] = opts[:vuln_id]
case mode case mode
when :unique when :unique