silc_server_save_channel_key now checks the channel from
authorPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 20:58:49 +0000 (20:58 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2001 20:58:49 +0000 (20:58 +0000)
global id list as well.

CHANGES
apps/silcd/server.c

diff --git a/CHANGES b/CHANGES
index f30ed095dbfacc158d36f80ea0e9cb984ef552bd..ad7c04272c3637bbfaeb244fedc26b6eafba444a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -37,6 +37,10 @@ Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
        * 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 <priikone@poseidon.pspt.fi>
 
        * Added --with-gmp configuration option.  If set the GMP
index f0a385f7602914410364a25fb273c99c3d6fbd50..05cba0894a9f485b120f7b1e9dac1c62c79e0de3 100644 (file)
@@ -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;
+      }
     }
   }