1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-17 21:19:01 +00:00

fix xml bug

This commit is contained in:
fyodor
2007-03-18 01:00:32 +00:00
parent 888af63431
commit e02e4cfef2
2 changed files with 6 additions and 0 deletions

View File

@@ -1,4 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*- # Nmap Changelog ($Id$); -*-text-*-
o Fix XML output so that the opening <os> tag is printed again. The
line which prints this was somehow removed when NSE was integrated.
Thanks to Joshua Abraham for reporthing the problem.
o Fix a small bug in traceroute progress output which neglected printing o Fix a small bug in traceroute progress output which neglected printing
when it was completed. This caused weirdness, especially when multiple when it was completed. This caused weirdness, especially when multiple
hosts were scanned. [Kris] hosts were scanned. [Kris]

View File

@@ -1339,6 +1339,7 @@ void printosscanoutput(Target *currenths) {
if (currenths->distance != -1) if (currenths->distance != -1)
distance = currenths->distance; distance = currenths->distance;
log_write(LOG_XML, "<os>");
if (FPR->osscan_closedtcpport > 0) { if (FPR->osscan_closedtcpport > 0) {
log_write(LOG_XML, log_write(LOG_XML,
"<portused state=\"closed\" proto=\"tcp\" portid=\"%hu\" />\n", "<portused state=\"closed\" proto=\"tcp\" portid=\"%hu\" />\n",