[eggheads-patches] Server output bug in eggdrop1.6.16rc1

Sven Trenkel Sven.Trenkel at tu-clausthal.de
Sat May 1 08:32:20 CST 2004


I found some kind of why-is-this-working-anyway bug in the server
module: Text sent to the server is terminated with "\x00\x0d\x0a"
instead of just "\x0d\x0a". I don't know why, but most servers are
accepting this.
Patch's attached.

CU
   Sven
-- 
Today's experiment ..... failed!
-------------- next part --------------
diff -urN eggdrop1.6.16rc1.original/src/mod/server.mod/server.c eggdrop1.6.16rc1.modified/src/mod/server.mod/server.c
--- eggdrop1.6.16rc1.original/src/mod/server.mod/server.c	Fri Apr  9 20:33:39 2004
+++ eggdrop1.6.16rc1.modified/src/mod/server.mod/server.c	Sat May  1 15:13:01 2004
@@ -795,6 +795,7 @@
    */
   remove_crlf(&buf);
   buf[510] = 0;
+	len = strlen(buf);
 
   /* No queue for PING and PONG - drummer */
   if (!egg_strncasecmp(buf, "PING", 4) || !egg_strncasecmp(buf, "PONG", 4)) {


More information about the Patches mailing list