summaryrefslogtreecommitdiff
path: root/usr.sbin/timed
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-04-02 09:51:03 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-04-02 09:51:03 +0000
commitcb29da6ab4c082aa7366db853e4e05815d643ff4 (patch)
tree526d37f2ae91c6b92bcbbcc2e8e1cf5629467921 /usr.sbin/timed
parent3d36ab2e448fddfc43a6c2ed12de5b69c211c1e3 (diff)
Fix security problem correctly; use >=, not >; mea culpa.
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r--usr.sbin/timed/timed/readmsg.c4
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;