]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Don't allow ulined glines to be propagated.
authorGunnar Beutner <redacted>
Tue, 16 Jul 2013 15:15:43 +0000 (17:15 +0200)
committerGunnar Beutner <redacted>
Tue, 16 Jul 2013 15:15:43 +0000 (17:15 +0200)
--HG--
branch : shroudtrusts

glines/glines.c

index 248fa9a368cac002fbcbbdaede6f9e740ce27b0e..cf85c51f0dfbb34f61f2fdfe8ac27c0d68dfb1db 100644 (file)
@@ -157,6 +157,12 @@ void gline_destroy(gline *agline, time_t lastmod, int propagate) {
 }
 
 void gline_propagate(gline *agline) {
+  /* Don't propagate Ulined glines. */
+  if (agline->lastmod == 0) {
+    Error("gline", ERR_WARNING, "Tried to propagate gline with lastmod == 0: %s", glinetostring(agline));
+    return;
+  }
+
   if (agline->flags & GLINE_DESTROYED) {
     controlwall(NO_OPER, NL_GLINES, "Destroying G-Line on '%s' lasting %s with reason '%s', created by: %s",
       glinetostring(agline), longtoduration(agline->expire-getnettime(), 0),