summaryrefslogtreecommitdiff
path: root/ntpdate/ntpdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpdate/ntpdate.c')
-rw-r--r--ntpdate/ntpdate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntpdate/ntpdate.c b/ntpdate/ntpdate.c
index be39cb030edb..14cf22b5d167 100644
--- a/ntpdate/ntpdate.c
+++ b/ntpdate/ntpdate.c
@@ -955,6 +955,8 @@ clock_filter(
register int i, j;
int ord[NTP_SHIFT];
+ INSIST((0 < sys_samples) && (sys_samples <= NTP_SHIFT));
+
/*
* Sort indices into increasing delay order
*/