From 095431c32342751134723776ce34bb3d57f62ced Mon Sep 17 00:00:00 2001 From: David Maloney Date: Thu, 26 Feb 2015 15:48:04 -0600 Subject: [PATCH] fix note search conditions note search conditions needed to know about vuln_id or else vuln notes would get overwritten MSP-12183 --- lib/msf/core/db_manager/note.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/msf/core/db_manager/note.rb b/lib/msf/core/db_manager/note.rb index a708c9bbc8..9840dd0937 100644 --- a/lib/msf/core/db_manager/note.rb +++ b/lib/msf/core/db_manager/note.rb @@ -124,6 +124,7 @@ module Msf::DBManager::Note conditions = { :ntype => ntype } conditions[:host_id] = host[:id] if host conditions[:service_id] = service[:id] if service + conditions[:vuln_id] = opts[:vuln_id] case mode when :unique