Merge remote-tracking branch 'gerry/nbe_importing_fix' into rapid7

bug/bundler_fix
James Lee 2013-03-04 20:00:50 -06:00
commit ac63965e4d
1 changed files with 3 additions and 3 deletions

View File

@ -5163,11 +5163,11 @@ class DBManager
# There is no place the NBE actually stores the plugin name used to
# scan. You get "Security Note" or "Security Warning," and that's it.
def import_nessus_nbe(args={}, &block)
data = args[:data]
nbe_data = args[:data]
wspace = args[:wspace] || workspace
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []
nbe_copy = data.dup
nbe_copy = nbe_data.dup
# First pass, just to build the address map.
addr_map = {}
@ -5183,7 +5183,7 @@ class DBManager
addr_map[hname] = addr
end
data.each_line do |line|
nbe_data.each_line do |line|
r = line.split('|')
next if r[0] != 'results'
hname = r[2]