From cb29da6ab4c082aa7366db853e4e05815d643ff4 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Mon, 2 Apr 2001 09:51:03 +0000 Subject: Fix security problem correctly; use >=, not >; mea culpa. --- usr.sbin/timed/timed/readmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/timed') 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; -- cgit v1.2.3