From 4b60068a4335802516a283baab8faf9c0715234a Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 6 May 2014 18:22:47 +0300 Subject: [PATCH] silcd: handle empty LIST command reply If server has only secret channels the server never sends the LIST command reply back at all. Check the number of channels to return after taking the secret channels out. --- apps/silcd/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 213e8fee..7999b328 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -797,7 +797,7 @@ silc_server_command_list_send_reply(SilcServerCommandContext cmd, valid_rcount++; } - if (!lch_count && !gch_count) { + if (!valid_lcount && !valid_rcount) { silc_server_command_send_status_reply(cmd, SILC_COMMAND_LIST, SILC_STATUS_OK, 0); return; -- 2.24.0