diff options
Diffstat (limited to 'share/security/patches/SA-01:29/rwhod.patch')
-rw-r--r-- | share/security/patches/SA-01:29/rwhod.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/share/security/patches/SA-01:29/rwhod.patch b/share/security/patches/SA-01:29/rwhod.patch deleted file mode 100644 index 121eb1341f..0000000000 --- a/share/security/patches/SA-01:29/rwhod.patch +++ /dev/null @@ -1,43 +0,0 @@ -Index: rwhod.c -=================================================================== -RCS file: /mnt/ncvs/src/usr.sbin/rwhod/rwhod.c,v -retrieving revision 1.14 -retrieving revision 1.15 -diff -u -r1.14 -r1.15 ---- rwhod.c 2000/07/12 00:47:33 1.14 -+++ rwhod.c 2000/12/22 21:30:15 1.15 -@@ -56,6 +56,7 @@ - #include <net/if_dl.h> - #include <net/route.h> - #include <netinet/in.h> -+#include <arpa/inet.h> - #include <protocols/rwhod.h> - - #include <ctype.h> -@@ -277,17 +278,22 @@ - continue; - } - if (from.sin_port != sp->s_port && !insecure_mode) { -- syslog(LOG_WARNING, "%d: bad from port", -- ntohs(from.sin_port)); -+ syslog(LOG_WARNING, "%d: bad source port from %s", -+ ntohs(from.sin_port), inet_ntoa(from.sin_addr)); - continue; - } -+ if (cc < WHDRSIZE) { -+ syslog(LOG_WARNING, "short packet from %s", -+ inet_ntoa(from.sin_addr)); -+ continue; -+ } - if (wd.wd_vers != WHODVERSION) - continue; - if (wd.wd_type != WHODTYPE_STATUS) - continue; - if (!verify(wd.wd_hostname, sizeof wd.wd_hostname)) { -- syslog(LOG_WARNING, "malformed host name from %x", -- from.sin_addr); -+ syslog(LOG_WARNING, "malformed host name from %s", -+ inet_ntoa(from.sin_addr)); - continue; - } - (void) snprintf(path, sizeof path, "whod.%s", wd.wd_hostname); |