Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/ntpq fix ifstats command by relaxing i...



details:   https://anonhg.NetBSD.org/src/rev/95e51a1cc18f
branches:  trunk
changeset: 339135:95e51a1cc18f
user:      kardel <kardel%NetBSD.org@localhost>
date:      Sun Jun 28 15:37:37 2015 +0000

description:
fix ifstats command by relaxing invalid sanity check - ntp bug #2860

diffstat:

 external/bsd/ntp/dist/ntpq/ntpq-subs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 036b7ef9da22 -r 95e51a1cc18f external/bsd/ntp/dist/ntpq/ntpq-subs.c
--- a/external/bsd/ntp/dist/ntpq/ntpq-subs.c    Sun Jun 28 15:13:28 2015 +0000
+++ b/external/bsd/ntp/dist/ntpq/ntpq-subs.c    Sun Jun 28 15:37:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntpq-subs.c,v 1.9 2015/04/07 17:34:19 christos Exp $   */
+/*     $NetBSD: ntpq-subs.c,v 1.10 2015/06/28 15:37:37 kardel Exp $    */
 
 /*
  * ntpq-subs.c - subroutines which are called to perform ntpq commands.
@@ -3101,7 +3101,7 @@
 {
        if (prow->ifnum == ifnum)
                return;
-       if (prow->ifnum + 1 == ifnum) {
+       if (prow->ifnum + 1 <= ifnum) {
                if (*pfields < IFSTATS_FIELDS)
                        fprintf(fp, "Warning: incomplete row with %d (of %d) fields",
                                *pfields, IFSTATS_FIELDS);



Home | Main Index | Thread Index | Old Index