[cvslog] (2005-05-30 22:09:46 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Mon May 30 16:09:47 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2005-05-30 22:09:45 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/net.c src/patch.h

Log message:

- Fixed a socklist leak in net.c.
* Fixed by: lordares

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.608 eggdrop1.6/doc/UPDATES1.6:1.609
--- eggdrop1.6/doc/UPDATES1.6:1.608	Fri Apr 15 22:01:04 2005
+++ eggdrop1.6/doc/UPDATES1.6	Mon May 30 17:09:33 2005
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.608 2005/04/16 03:01:04 wcc Exp $
+$Id: UPDATES1.6,v 1.609 2005/05/30 22:09:33 wcc Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -12,6 +12,9 @@
 
 
   1.6.18:
+    - Fixed a socklist leak in net.c.
+    * Fixed by: lordares
+
     - Hopefully fixed dns lockups.
     * Found by: various - Patch by: Sven Trenkel
 
Index: eggdrop1.6/src/net.c
diff -u eggdrop1.6/src/net.c:1.76 eggdrop1.6/src/net.c:1.77
--- eggdrop1.6/src/net.c:1.76	Fri Apr 15 22:01:05 2005
+++ eggdrop1.6/src/net.c	Mon May 30 17:09:34 2005
@@ -2,7 +2,7 @@
  * net.c -- handles:
  *   all raw network i/o
  *
- * $Id: net.c,v 1.76 2005/04/16 03:01:05 wcc Exp $
+ * $Id: net.c,v 1.77 2005/05/30 22:09:34 wcc Exp $
  */
 /*
  * This is hereby released into the public domain.
@@ -403,8 +403,10 @@
 
   name.sin_family = AF_INET;
   name.sin_addr.s_addr = (myip[0] ? getmyip() : INADDR_ANY);
-  if (bind(sock, (struct sockaddr *) &name, sizeof(name)) < 0)
+  if (bind(sock, (struct sockaddr *) &name, sizeof(name)) < 0) {
+    killsock(sock);
     return -1;
+  }
   egg_bzero((char *) &name, sizeof(struct sockaddr_in));
 
   name.sin_family = AF_INET;
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1151 eggdrop1.6/src/patch.h:1.1152
--- eggdrop1.6/src/patch.h:1.1151	Fri Apr 15 22:01:05 2005
+++ eggdrop1.6/src/patch.h	Mon May 30 17:09:35 2005
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1151 2005/04/16 03:01:05 wcc Exp $
+ * $Id: patch.h,v 1.1152 2005/05/30 22:09:35 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1113619880");            /* current unixtime */
+patch("1117490975");            /* current unixtime */
 /*
  *
  *
  */
-patch("sigsetjmp");
+patch("leaked-socklist");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list