Blame SOURCES/mtr-crash-in-xml-mode.patch

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