From e85a3502578e8880af43970775d69059e6524146 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Sun, 29 May 2011 03:00:13 +0000 Subject: [PATCH] Fixes #4605 -- only try to yield if we have a block to yield to. git-svn-id: file:///home/svn/framework3/trunk@12762 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/parser/nexpose_raw_nokogiri.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rex/parser/nexpose_raw_nokogiri.rb b/lib/rex/parser/nexpose_raw_nokogiri.rb index 6d18057c0d..03b6a7d196 100644 --- a/lib/rex/parser/nexpose_raw_nokogiri.rb +++ b/lib/rex/parser/nexpose_raw_nokogiri.rb @@ -109,7 +109,8 @@ module Rex return unless @report_data[:vuln][:matches].kind_of? Array refs = normalize_references(@report_data[:vuln][:refs]) refs << "NEXPOSE-#{report_data[:vuln]["id"]}" - db.emit(:vuln, [refs.last,@report_data[:vuln][:matches].size], &block) + vuln_instances = @report_data[:vuln][:matches].size + db.emit(:vuln, [refs.last,vuln_instances], &block) if block data = { :workspace => @args[:wspace], :name => refs.last,