Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Mon, 11 Jun 2001 15:12:38 +0000 (15:12 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Mon, 11 Jun 2001 15:12:38 +0000 (15:12 +0000)
Log message:

*mumble* *mumble* *frotz*

I wondered why the server was trying to find the user structure describing
another server...

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

ChangeLog
ircd/send.c

index 0f6d2464cb49cdf3b569b64362dd5186f63e932b..eaa652fd7884518b650cd3701bbc932c5fde787b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-11  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/send.c (sendcmdto_match_butone): don't let the server crash
+       if a client is in the STAT_CONNECTING status
+
 2001-06-10  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/send.c: remove unused vsendcmdto_one(), consolidating it
index 3c60223d4903ab1f1ebc5a6514b515f3d8f39b4a..6da453bd967f1a6f823f0c0bcaf34f5f1906eef0 100644 (file)
@@ -571,8 +571,8 @@ void sendcmdto_match_butone(struct Client *from, const char *cmd,
   /* send buffer along */
   sentalong_marker++;
   for (cptr = GlobalClientList; cptr; cptr = cli_next(cptr)) {
-    if (cli_from(cptr) == one || IsServer(cptr) || IsMe(cptr) ||
-       !match_it(cptr, to, who) || cli_fd(cli_from(cptr)) < 0 ||
+    if (!IsRegistered(cptr) || cli_from(cptr) == one || IsServer(cptr) ||
+       IsMe(cptr) || !match_it(cptr, to, who) || cli_fd(cli_from(cptr)) < 0 ||
        sentalong[cli_fd(cli_from(cptr))] == sentalong_marker)
       continue; /* skip it */
     sentalong[cli_fd(cli_from(cptr))] = sentalong_marker;