Print error about unknown channel ekys only on router since it's
authorPekka Riikonen <priikone@silcnet.org>
Tue, 10 Sep 2002 08:39:11 +0000 (08:39 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 10 Sep 2002 08:39:11 +0000 (08:39 +0000)
possible (expecially on backup router) to receive those.

apps/silcd/server.c

index 3126c396bc38d07897fac43d42eb5fe1932c9876..f5e6b7fcffb001cc904539011cb935ff6cf5f77f 100644 (file)
@@ -3824,8 +3824,9 @@ SilcChannelEntry silc_server_save_channel_key(SilcServer server,
     if (!channel) {
       channel = silc_idlist_find_channel_by_id(server->global_list, id, NULL);
       if (!channel) {
-       SILC_LOG_ERROR(("Received key for non-existent channel %s",
-                       silc_id_render(id, SILC_ID_CHANNEL)));
+       if (server->server_type == SILC_ROUTER)
+         SILC_LOG_ERROR(("Received key for non-existent channel %s",
+                         silc_id_render(id, SILC_ID_CHANNEL)));
        goto out;
       }
     }