diff options
author | 2001-04-02 09:51:02 +0000 | |
---|---|---|
committer | 2001-04-02 09:51:02 +0000 | |
commit | 3bcededbef3eaf37957c7b7c41ad84b3d1354bbc (patch) | |
tree | 2d8d1589863d6f2305d304b5d7381122f645fe5d | |
parent | Use poll(2) instead of select(2). (diff) | |
download | wireguard-openbsd-3bcededbef3eaf37957c7b7c41ad84b3d1354bbc.tar.xz wireguard-openbsd-3bcededbef3eaf37957c7b7c41ad84b3d1354bbc.zip |
Fix security problem correctly; use >=, not >; mea culpa.
-rw-r--r-- | usr.sbin/timed/timed/readmsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/timed/timed/readmsg.c b/usr.sbin/timed/timed/readmsg.c index 8c320c2e137..9ef923d118f 100644 --- a/usr.sbin/timed/timed/readmsg.c +++ b/usr.sbin/timed/timed/readmsg.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)readmsg.c 5.1 (Berkeley) 5/11/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.5 $" +#ident "$Revision: 1.6 $" #endif #include "globals.h" @@ -449,7 +449,7 @@ struct sockaddr_in *addr; char tm[26]; time_t msgtime; - if (msg->tsp_type > TSPTYPENUMBER) { + if (msg->tsp_type >= TSPTYPENUMBER) { fprintf(fd, "bad type (%u) on packet from %s\n", msg->tsp_type, inet_ntoa(addr->sin_addr)); return; |