From: Pekka Riikonen Date: Tue, 10 Sep 2002 08:39:11 +0000 (+0000) Subject: Print error about unknown channel ekys only on router since it's X-Git-Tag: silc.server.0.9.5~4 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=9cd5f7467e54d23598d72f891acd5050b509ce48 Print error about unknown channel ekys only on router since it's possible (expecially on backup router) to receive those. --- diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 3126c396..f5e6b7fc 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -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; } }