[cvslog] [CVS] Module eggdrop1.6: Change committed

cvs at eggheads.org cvs at eggheads.org
Sun Oct 2 14:11:16 CST 2011


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2011-10-02 20:11:16 UTC
Committer  : Rumen Stoyanov <pseudo at egg6.net>

Modified files:
     doc/Changes1.6 src/patch.h src/mod/share.mod/share.c

Log message:

Fixed an ancient bug resulting in sending uninitialized strings when sharing bot addresses.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/Changes1.6
diff -u eggdrop1.6/doc/Changes1.6:1.114 eggdrop1.6/doc/Changes1.6:1.115
--- eggdrop1.6/doc/Changes1.6:1.114	Sun Oct  2 12:25:17 2011
+++ eggdrop1.6/doc/Changes1.6	Sun Oct  2 14:11:06 2011
@@ -1,4 +1,4 @@
-$Id: Changes1.6,v 1.114 2011/10/02 18:25:17 pseudo Exp $
+$Id: Changes1.6,v 1.115 2011/10/02 20:11:06 pseudo Exp $
 
 Eggdrop Changes (since version 1.6.0)
 
@@ -6,6 +6,10 @@
 
 1.6.21 (CVS):
 
+  - Fixed an ancient bug resulting in sending uninitialized strings when
+    sharing bot addresses.
+    Patch by: pseudo
+
   - Altered the permission check on the pls/mns ban/exempt/invite commands
     from USER_MASTER to USER_OP to allow global operators to set global bans.
     Patch by: pjb
Index: eggdrop1.6/src/mod/share.mod/share.c
diff -u eggdrop1.6/src/mod/share.mod/share.c:1.93 eggdrop1.6/src/mod/share.mod/share.c:1.94
--- eggdrop1.6/src/mod/share.mod/share.c:1.93	Sun Feb 13 08:19:34 2011
+++ eggdrop1.6/src/mod/share.mod/share.c	Sun Oct  2 14:11:06 2011
@@ -1,7 +1,7 @@
 /*
  * share.c -- part of share.mod
  *
- * $Id: share.c,v 1.93 2011/02/13 14:19:34 simple Exp $
+ * $Id: share.c,v 1.94 2011/10/02 20:11:06 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1947,10 +1947,11 @@
             q_tbuf(dcc[idx].nick, s2, NULL);
           }
           /* Send address */
-          if (bi)
+          if (bi) {
             egg_snprintf(s2, sizeof s2, "s c BOTADDR %s %s %d %d\n", u->handle,
                          bi->address, bi->telnet_port, bi->relay_port);
-          q_tbuf(dcc[idx].nick, s2, NULL);
+            q_tbuf(dcc[idx].nick, s2, NULL);
+          }
           fr.match = FR_GLOBAL;
           fr.global = u->flags;
 
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1268 eggdrop1.6/src/patch.h:1.1269
--- eggdrop1.6/src/patch.h:1.1268	Sun Oct  2 12:25:17 2011
+++ eggdrop1.6/src/patch.h	Sun Oct  2 14:11:06 2011
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1268 2011/10/02 18:25:17 pseudo Exp $
+ * $Id: patch.h,v 1.1269 2011/10/02 20:11:06 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1317579786");            /* current unixtime */
+patch("1317586214");            /* current unixtime */
 /*
  *
  *
  */
-patch("banfix");
+patch("baddrshare");
 /*
  *
  *
----------------------- End of diff -----------------------


More information about the Changes mailing list