From: Frank Kardel Date: Sat, 18 Mar 2006 14:09:32 +0000 (+0000) Subject: refclock_leitch.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdb9937188ce6ff00eb57e205f1301fdadcf17bb;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 d7cd9bbd61..b50fa05d1c 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; }