[cvslog] (2002-07-25 20:00:30 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Thu Jul 25 15:01:01 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-07-25 20:00:29 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     src/net.c src/patch.h

Log message:

Fixes double-echo from sockfix1 (patch by [sL]@EFnet).

---------------------- diff included ----------------------
Index: eggdrop1.6/src/net.c
diff -u eggdrop1.6/src/net.c:1.40 eggdrop1.6/src/net.c:1.41
--- eggdrop1.6/src/net.c:1.40	Mon Jul 22 00:55:22 2002
+++ eggdrop1.6/src/net.c	Thu Jul 25 15:00:18 2002
@@ -2,7 +2,7 @@
  * net.c -- handles:
  *   all raw network i/o
  * 
- * $Id: net.c,v 1.40 2002/07/22 05:55:22 guppy Exp $
+ * $Id: net.c,v 1.41 2002/07/25 20:00:18 wcc Exp $
  */
 /* 
  * This is hereby released into the public domain.
@@ -791,6 +791,9 @@
               if (socklist[i].inbuf != NULL) {
                 strcpy(s, socklist[i].inbuf);
                 *len = strlen(s);
+                nfree(socklist[i].inbuf);
+                socklist[i].inbuf = NULL;
+                socklist[i].inbuflen = 0;
                 return socklist[i].sock;
               }
             }
@@ -938,6 +941,9 @@
       if (socklist[ret].inbuf != NULL) {
         strcpy(s, socklist[ret].inbuf);
         *len = strlen(s);
+        nfree(socklist[ret].inbuf);
+        socklist[ret].inbuf = NULL;
+        socklist[ret].inbuflen = 0;
       }
     }
     return socklist[ret].sock;
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.786 eggdrop1.6/src/patch.h:1.787
--- eggdrop1.6/src/patch.h:1.786	Thu Jul 25 12:40:18 2002
+++ eggdrop1.6/src/patch.h	Thu Jul 25 15:00:18 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.786 2002/07/25 17:40:18 guppy Exp $
+ * $Id: patch.h,v 1.787 2002/07/25 20:00:18 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1027618773");		/* current unixtime */
+patch("1027627083");		/* current unixtime */
 /*
  *
  *
  */
-patch("need_fix2");
+patch("sockfix3");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list