]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add an assert to the ntpq ifstats code
authorHarlan Stenn <stenn@ntp.org>
Fri, 8 May 2015 05:35:12 +0000 (05:35 +0000)
committerHarlan Stenn <stenn@ntp.org>
Fri, 8 May 2015 05:35:12 +0000 (05:35 +0000)
bk: 554c4b10mXg4JSh0uX0RAJ8GFQmHMw

ChangeLog
ntpq/ntpq-subs.c

index 88b76234912ecc42da78c7397f0de95ed80d56c9..0d1857708c56c31e4219abd6d38ff661f7361759 100644 (file)
--- 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.
index 8bd4fdbbcf4e867543bdd23266cea6ecd99e9271..c91e70302ff7278f168ce8072c7c5f279d3d4c77 100644 (file)
@@ -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)) {