From: Frank Kardel Date: Sat, 18 Mar 2006 14:09:32 +0000 (+0000) Subject: refclock_leitch.c: X-Git-Tag: NTP_4_2_1P10_RC~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cadf433ec3822b60c934a5eff7fced64142a22a;p=thirdparty%2Fntp.git refclock_leitch.c: buffer bounds: correct > - >= error for bounds check (Coverity CID 1511 NetBSD Scan 5) bk: 441c149c1gZPT53Tcg7uFGZohu-rrA --- diff --git a/ntpd/refclock_leitch.c b/ntpd/refclock_leitch.c index d7cd9bbd6..b50fa05d1 100644 --- a/ntpd/refclock_leitch.c +++ b/ntpd/refclock_leitch.c @@ -166,7 +166,7 @@ leitch_poll( if (debug) fprintf(stderr, "leitch_poll()\n"); #endif - if (unit > MAXUNITS) { + if (unit >= MAXUNITS) { /* XXXX syslog it */ return; }