Committer : klmitch
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-04-10 14:53:14 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/m_gline.c
Log message:
Author: Kev <[EMAIL PROTECTED]>
Log message:
Don't allow G-lines to have 0 lastmod--return a "need more params" message
if lastmod evaluates to 0. This solves the bug where not passing a lastmod
resulted in an assertion failure in gline_propagate().
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.177 ircu2.10/ChangeLog:1.710.2.178
--- ircu2.10/ChangeLog:1.710.2.177 Wed Apr 4 18:52:39 2007
+++ ircu2.10/ChangeLog Tue Apr 10 07:53:03 2007
@@ -1,3 +1,7 @@
+2007-04-10 Kevin L. Mitchell <[EMAIL PROTECTED]>
+
+ * ircd/m_gline.c (ms_gline): lastmod must be non-zero
+
2007-04-04 Michael Poole <[EMAIL PROTECTED]>
* ircd/s_conf.c (rehash): Restart resolver after reading the
Index: ircu2.10/ircd/m_gline.c
diff -u ircu2.10/ircd/m_gline.c:1.26.2.4 ircu2.10/ircd/m_gline.c:1.26.2.5
--- ircu2.10/ircd/m_gline.c:1.26.2.4 Sun Mar 18 05:15:45 2007
+++ ircu2.10/ircd/m_gline.c Tue Apr 10 07:53:03 2007
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_gline.c,v 1.26.2.4 2007/03/18 12:15:45 klmitch Exp $
+ * $Id: m_gline.c,v 1.26.2.5 2007/04/10 14:53:03 klmitch Exp $
*/
/*
@@ -306,6 +306,9 @@
}
}
+ if (!lastmod) /* must have a lastmod parameter by now */
+ return need_more_params(sptr, "GLINE");
+
Debug((DEBUG_DEBUG, "I have a global G-line I am acting upon now; "
"target %s, mask %s, operforce %s, action %s, expire %Tu, "
"lastmod %Tu, lifetime %Tu, reason: %s; gline %s! (fields "
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches