]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
re-initialize ipinfo_no and -max. Fixes #161.
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 26 Oct 2016 06:44:35 +0000 (08:44 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 26 Oct 2016 06:44:35 +0000 (08:44 +0200)
mtr.c

diff --git a/mtr.c b/mtr.c
index 377283c93bc16e1def572d5fc31d049a31fc542d..786f6c482be41e25f6345e51a890758bfce8354c 100644 (file)
--- a/mtr.c
+++ b/mtr.c
@@ -648,6 +648,8 @@ extern int main(int argc, char **argv)
   ctl.maxTTL = 30;
   ctl.maxUnknown = 12;
   ctl.tcp_timeout = 10 * 1000000;
+  ctl.ipinfo_no = -1;
+  ctl.ipinfo_max = -1;
   xstrncpy(ctl.fld_active, "LS NABWV", 2 * MAXFLD);
 
   /*  Get the raw sockets first thing, so we can drop to user euid immediately  */