mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix ordering of hostscript diff elements when either side of the diff
doesn't have any. Patch by Daniel Miller.
This commit is contained in:
parent
5e3c5d8eca
commit
4c649d481b
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o [Ndiff] Fixed the ordering of hostscript-related elements in XML
|
||||
output. [Daniel Miller]
|
||||
|
||||
o [NSE] Fixed a bug in the nrpe-enum script that would make it run for
|
||||
every port (when it was selected, which it was not by default).
|
||||
Daniel Miller reported the bug. [Patrick]
|
||||
|
|
|
|||
|
|
@ -720,13 +720,13 @@ class HostDiff(object):
|
|||
elif len(host_b.script_results) == 0:
|
||||
a_elem = document.createElement(u"a")
|
||||
for sr in host_a.script_results:
|
||||
a_elem.appendChild(sr.to_dom_fragment(document))
|
||||
hostscript_elem.appendChild(sr.to_dom_fragment(document))
|
||||
a_elem.appendChild(hostscript_elem)
|
||||
host_elem.appendChild(a_elem)
|
||||
elif len(host_a.script_results) == 0:
|
||||
b_elem = document.createElement(u"b")
|
||||
for sr in host_b.script_results:
|
||||
b_elem.appendChild(sr.to_dom_fragment(document))
|
||||
hostscript_elem.appendChild(sr.to_dom_fragment(document))
|
||||
b_elem.appendChild(hostscript_elem)
|
||||
host_elem.appendChild(b_elem)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue