CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_11_05
Commit time: 2003-07-13 12:10:47 UTC

Modified files:
  Tag: u2_10_11_05
     ChangeLog ircd/IPcheck.c

Log message:

Author: hikari <[EMAIL PROTECTED]>
Log message:

  Unwrap the connected counter in ip_registry_check_local() before
returning.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.128.2.28 ircu2.10/ChangeLog:1.290.2.128.2.29
--- ircu2.10/ChangeLog:1.290.2.128.2.28 Thu Jul  3 16:16:18 2003
+++ ircu2.10/ChangeLog  Sun Jul 13 05:10:37 2003
@@ -1,3 +1,7 @@
+2003-07-13 hikari <[EMAIL PROTECTED]>
+       * ircd/IPcheck.c: Fixed (another) overflow problem in
+       ip_registry_check_local()
+
 2003-07-04 Spike  <[EMAIL PROTECTED]>
        * ircd/s_user.c: Fixed a small typo
 
Index: ircu2.10/ircd/IPcheck.c
diff -u ircu2.10/ircd/IPcheck.c:1.26.2.2.4.3 ircu2.10/ircd/IPcheck.c:1.26.2.2.4.4
--- ircu2.10/ircd/IPcheck.c:1.26.2.2.4.3        Sun Jun 29 05:26:13 2003
+++ ircu2.10/ircd/IPcheck.c     Sun Jul 13 05:10:37 2003
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: IPcheck.c,v 1.26.2.2.4.3 2003/06/29 12:26:13 shad0w Exp $
+ * $Id: IPcheck.c,v 1.26.2.2.4.4 2003/07/13 12:10:37 shad0w Exp $
  *
  * 
  * This file should be edited in a window with a width of 141 characters
@@ -243,7 +243,10 @@
    * Don't allow more then 255 connects from one IP number, ever
    */
   if (0 == ++entry->connected)
+  {
+    entry->connected--;
     return 0;
+  }
 
   if (CONNECTED_SINCE(entry->last_connect) > IPCHECK_CLONE_PERIOD)
     entry->attempts = 0;
----------------------- End of diff -----------------------

Reply via email to