From: Harlan Stenn Date: Fri, 8 May 2015 05:35:12 +0000 (+0000) Subject: Add an assert to the ntpq ifstats code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3913c171cd885fe70357b53eb63bedf24988ff8;p=thirdparty%2Fntp.git Add an assert to the ntpq ifstats code bk: 554c4b10mXg4JSh0uX0RAJ8GFQmHMw --- diff --git a/ChangeLog b/ChangeLog index 88b762349..0d1857708 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ * [Bug 2815] net-snmp before v5.4 has circular library dependencies. * [Bug 2822] New leap column in sntp broke NTP::Util.pm. * [Bug 2825] Quiet file installation in html/ . +* Add an assert to the ntpq ifstats code. * Clean up the RLIMIT_STACK code. * Improve the ntpq documentation around the controlkey keyid. * ntpq.c cleanup. diff --git a/ntpq/ntpq-subs.c b/ntpq/ntpq-subs.c index 8bd4fdbbc..c91e70302 100644 --- a/ntpq/ntpq-subs.c +++ b/ntpq/ntpq-subs.c @@ -3245,6 +3245,7 @@ ifstats( case 'n': if (1 == sscanf(tag, name_fmt, &ui)) { /* strip quotes */ + INSIST(val); len = strlen(val); if (len >= 2 && len - 2 < sizeof(row.name)) {