Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2007-03-04 14:59:34 UTC
Modified files:
ChangeLog ircd/gline.c
Log message:
Fix ipbuf size in count_users().
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.837 ircu2.10/ChangeLog:1.838
--- ircu2.10/ChangeLog:1.837 Wed Feb 28 14:38:50 2007
+++ ircu2.10/ChangeLog Sun Mar 4 06:59:24 2007
@@ -1,3 +1,8 @@
+2007-03-04 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/gline.c (count_users): Fix length of ipbuf. (Spotted by
+ paulr.)
+
2007-02-28 Michael Poole <[EMAIL PROTECTED]>
* ircd/os_generic.c (sockaddr_from_irc): Zero out socket address
Index: ircu2.10/ircd/gline.c
diff -u ircu2.10/ircd/gline.c:1.65 ircu2.10/ircd/gline.c:1.66
--- ircu2.10/ircd/gline.c:1.65 Sun Jul 23 11:04:21 2006
+++ ircu2.10/ircd/gline.c Sun Mar 4 06:59:24 2007
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Implementation of Gline manipulation functions.
- * @version $Id: gline.c,v 1.65 2006/07/23 18:04:21 entrope Exp $
+ * @version $Id: gline.c,v 1.66 2007/03/04 14:59:24 entrope Exp $
*/
#include "config.h"
@@ -77,7 +77,7 @@
struct Client *acptr;
int count = 0;
char namebuf[USERLEN + HOSTLEN + 2];
- char ipbuf[USERLEN + 16 + 2];
+ char ipbuf[USERLEN + SOCKIPLEN + 2];
for (acptr = GlobalClientList; acptr; acptr = cli_next(acptr)) {
if (!IsUser(acptr))
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches