bugfix for NMAP failure, test case: "db_nmap -P"

git-svn-id: file:///home/svn/framework3/trunk@7542 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2009-11-16 19:06:42 +00:00
parent 10e897b94f
commit 6d18c6dd53
1 changed files with 5 additions and 5 deletions

View File

@ -724,11 +724,6 @@ class Db
return
end
if (not File.readable?(args[0]))
print_status("Could not read the XML file")
return
end
load_nmap_xml(args[0])
end
@ -780,6 +775,11 @@ class Db
# Process Nmap XML data
#
def load_nmap_xml(filename)
if (not File.readable?(filename))
print_status("Could not read the XML file")
return
end
l = NmapXMLStreamParser.new(framework)
REXML::Document.parse_stream(File.new(filename), l)
end