From: Pekka Riikonen Date: Wed, 11 Sep 2002 07:15:19 +0000 (+0000) Subject: In signoff assure that channel key is present before sending it. X-Git-Tag: silc.server.0.9.5 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=66816b4c37c80b401ad8dad52269abd1e257f3ec In signoff assure that channel key is present before sending it. Can crash server. --- diff --git a/apps/silcd/server_util.c b/apps/silcd/server_util.c index 93f2d5bd..92b7bd78 100644 --- a/apps/silcd/server_util.c +++ b/apps/silcd/server_util.c @@ -358,7 +358,7 @@ bool silc_server_remove_clients_by_server(SilcServer server, } /* Do not send the channel key if private channel key mode is set */ - if (channel->mode & SILC_CHANNEL_MODE_PRIVKEY) + if (channel->mode & SILC_CHANNEL_MODE_PRIVKEY || !channel->channel_key) continue; silc_server_send_channel_key(server, NULL, channel,