diff options
Diffstat (limited to 'net-misc/netkit-rwho/files/netkit-rwho-0.17-tiny-packet-dos.patch')
-rw-r--r-- | net-misc/netkit-rwho/files/netkit-rwho-0.17-tiny-packet-dos.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-tiny-packet-dos.patch b/net-misc/netkit-rwho/files/netkit-rwho-0.17-tiny-packet-dos.patch deleted file mode 100644 index 4c9b83063b47..000000000000 --- a/net-misc/netkit-rwho/files/netkit-rwho-0.17-tiny-packet-dos.patch +++ /dev/null @@ -1,20 +0,0 @@ -If a user sends a packet which is smaller than WHDRSIZE, the code -will later hit a loop which will result in the service faulting. -A simple DoS where the server will be taken out, but something -that should be fixed :). - -http://bugs.gentoo.org/show_bug.cgi?id=78371 - ---- rwhod/rwhod.c -+++ rwhod/rwhod.c -@@ -258,6 +258,10 @@ - syslog(LOG_WARNING, "recv: %m"); - continue; - } -+ if (cc < WHDRSIZE) { -+ syslog(LOG_WARNING, "packet too small"); -+ continue; -+ } - if (from.sin_port != sp->s_port) { - syslog(LOG_WARNING, "%d: bad from port", - ntohs(from.sin_port)); |