1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Fix a bug: in deciding whenther to print the diff for a port, a port in

host B was being check to see if it was an extraport in host A.
This commit is contained in:
david
2009-07-06 22:27:53 +00:00
parent cf5dd5cfd5
commit f6b10157f7

View File

@@ -519,7 +519,7 @@ class HostDiff(object):
else:
if not host_a.is_extraports(port_a.state):
port_table.append((u"-", port_a.spec_string(), port_a.state_string(), port_a.service.name_string(), port_a.service.version_string()))
if not host_a.is_extraports(port_b.state):
if not host_b.is_extraports(port_b.state):
port_table.append((u"+", port_b.spec_string(), port_b.state_string(), port_b.service.name_string(), port_b.service.version_string()))
if len(port_table) > 1: