summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2001-04-02 09:51:02 +0000
committerfgsch <fgsch@openbsd.org>2001-04-02 09:51:02 +0000
commit3bcededbef3eaf37957c7b7c41ad84b3d1354bbc (patch)
tree2d8d1589863d6f2305d304b5d7381122f645fe5d
parentUse poll(2) instead of select(2). (diff)
downloadwireguard-openbsd-3bcededbef3eaf37957c7b7c41ad84b3d1354bbc.tar.xz
wireguard-openbsd-3bcededbef3eaf37957c7b7c41ad84b3d1354bbc.zip
Fix security problem correctly; use >=, not >; mea culpa.
-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;