From a71348276170d84fb63ace7bf17463ae5f14e9c8 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Mon, 11 Jun 2001 15:12:38 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ ircd/send.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 2.20.1