Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Fri, 15 Dec 2000 20:16:07 +0000 (20:16 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Fri, 15 Dec 2000 20:16:07 +0000 (20:16 +0000)
Log message:

Fixed a bug that would crash the server anytime flush_connections() was
called with a 0 argument--boy do I feel dumb.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@340 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/send.c

index df43b1b295d1ab29d1018fbf62c892c071b0c297..644973fb981418ac5b634fa2a4117436ad5719b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-12-15  Kevin L. Mitchell  <klmitch@mit.edu>
 
+       * ircd/send.c: got the direction of the assert incorrect...
+
        * ircd/send.c: implement the efficiency of flush_connections by
        creating a linked list of struct Connection's with queued data;
        also get rid of flush_sendq_except and make sure to yank
index 72487d295f21035255f1818b65fba1a994541396..8361dcc63e81447b37c6cfce4fd5bf950505fb5e 100644 (file)
@@ -111,7 +111,7 @@ void flush_connections(struct Client* cptr)
   else {
     struct Connection* con;
     for (con = send_queues; con; con = con_next(con)) {
-      assert(0 > MsgQLength(&(con_sendQ(con))));
+      assert(0 < MsgQLength(&(con_sendQ(con))));
       send_queued(con_client(con));
     }
   }