From: Kevin L. Mitchell Date: Mon, 11 Jun 2001 15:12:38 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=a71348276170d84fb63ace7bf17463ae5f14e9c8 Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index 0f6d246..eaa652f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-11 Kevin L. Mitchell + + * 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 * ircd/send.c: remove unused vsendcmdto_one(), consolidating it diff --git a/ircd/send.c b/ircd/send.c index 3c60223..6da453b 100644 --- a/ircd/send.c +++ b/ircd/send.c @@ -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;