Module Name:    src
Committed By:   kardel
Date:           Sun Jun 28 15:37:37 UTC 2015

Modified Files:
        src/external/bsd/ntp/dist/ntpq: ntpq-subs.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/ntp/dist/ntpq/ntpq-subs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/dist/ntpq/ntpq-subs.c
diff -u src/external/bsd/ntp/dist/ntpq/ntpq-subs.c:1.9 src/external/bsd/ntp/dist/ntpq/ntpq-subs.c:1.10
--- src/external/bsd/ntp/dist/ntpq/ntpq-subs.c:1.9	Tue Apr  7 17:34:19 2015
+++ src/external/bsd/ntp/dist/ntpq/ntpq-subs.c	Sun Jun 28 15:37:37 2015
@@ -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 @@ validate_ifnum(
 {
 	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);

Reply via email to