From: R.E. Wolff Date: Wed, 18 Apr 2018 10:22:23 +0000 (+0200) Subject: -f equals -m fix from yvs2014 X-Git-Tag: v0.93~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=231ba5f3e68d3759618c0d6f17240f443404b142;p=thirdparty%2Fmtr.git -f equals -m fix from yvs2014 --- diff --git a/ui/net.c b/ui/net.c index 74dc3e3..69d4477 100644 --- a/ui/net.c +++ b/ui/net.c @@ -473,7 +473,7 @@ int net_max( int max; max = 0; - for (at = 0; at < ctl->maxTTL - 1; at++) { + for (at = 0; at < ctl->maxTTL; at++) { if (addrcmp((void *) &(host[at].addr), (void *) remoteaddress, ctl->af) == 0) { return at + 1; @@ -490,6 +490,8 @@ int net_max( } } + if (max > ctl->maxTTL) + max = ctl->maxTTL; return max; }