From a2b22f4b8f979370c6ad718a2ad15c8ba0d07953 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 14 Feb 2001 20:58:49 +0000 Subject: [PATCH] silc_server_save_channel_key now checks the channel from global id list as well. --- CHANGES | 4 ++++ apps/silcd/server.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index f30ed095..ad7c0427 100644 --- a/CHANGES +++ b/CHANGES @@ -37,6 +37,10 @@ Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen * Fixed Remove Channel User payload parsing bug in server's silcd/packet_receive.c. Fixed a bug related to LEAVE command. + * The server's silc_server_save_channel_key now checks also the + global ID list for the channel as it might not be in the local + list. Fixed a bug related to LEAVE command. + Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen * Added --with-gmp configuration option. If set the GMP diff --git a/apps/silcd/server.c b/apps/silcd/server.c index f0a385f7..05cba089 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -2185,8 +2185,11 @@ SilcChannelEntry silc_server_save_channel_key(SilcServer server, channel = silc_idlist_find_channel_by_id(server->local_list, id, NULL); if (!channel) { - SILC_LOG_ERROR(("Received key for non-existent channel")); - goto out; + channel = silc_idlist_find_channel_by_id(server->global_list, id, NULL); + if (!channel) { + SILC_LOG_ERROR(("Received key for non-existent channel")); + goto out; + } } } -- 2.43.0