mtr/mtr-crash-in-xml-mode.patch
Jan Görig 261ddf40c2 - update to 0.80
- mtr now waits for last sent packet (#611739)
- fixed crashes in XML format
- XML format fixes
2010-10-26 10:38:58 +02:00

26 lines
674 B
Diff

From 9b5df3b69d2ded1a81627a1619e4ce03ca906367 Mon Sep 17 00:00:00 2001
From: Jan Gorig <jgorig@redhat.com>
Date: Mon, 25 Oct 2010 12:53:16 +0200
Subject: [PATCH 1/3] Crash in XML mode
---
report.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/report.c b/report.c
index 34ea114..49dfcfb 100644
--- a/report.c
+++ b/report.c
@@ -220,7 +220,7 @@ void xml_close(void)
printf(" <HUB COUNT=%d HOST=%s>\n", at+1, name);
for( i=0; i<MAXFLD; i++ ) {
j = fld_index[fld_active[i]];
- if (j < 0) continue;
+ if (j <= 0) continue;
strcpy(name, " <%s>");
strcat(name, data_fields[j].format);
--
1.7.3.1