Fix the case of hosts with no services

git-svn-id: file:///home/svn/framework3/trunk@3915 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-09-18 06:22:43 +00:00
parent c2ef34a420
commit fa5503d0ea
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ module Db
prot = port.attributes['protocol']
pnum = port.attributes['portid']
stat = port.elements['state'].attributes['state']
next if not port.elements['service']
name = port.elements['service'].attributes['name']
prod = port.elements['service'].attributes['product']
xtra = port.elements['service'].attributes['extrainfo']