]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
refclock_leitch.c:
authorFrank Kardel <kardel@ntp.org>
Sat, 18 Mar 2006 14:09:32 +0000 (14:09 +0000)
committerFrank Kardel <kardel@ntp.org>
Sat, 18 Mar 2006 14:09:32 +0000 (14:09 +0000)
  buffer bounds: correct > - >= error for bounds check (Coverity CID 1511 NetBSD Scan 5)

bk: 441c149c1gZPT53Tcg7uFGZohu-rrA

ntpd/refclock_leitch.c

index d7cd9bbd61687e2c55c70013d30615c0ffdfdf94..b50fa05d1cbef71fa0bbfba901e4b7f90af4d262 100644 (file)
@@ -166,7 +166,7 @@ leitch_poll(
        if (debug)
            fprintf(stderr, "leitch_poll()\n");
 #endif
-       if (unit > MAXUNITS) {
+       if (unit >= MAXUNITS) {
                /* XXXX syslog it */
                return;
        }