From: Pekka Riikonen Date: Tue, 6 May 2014 15:22:47 +0000 (+0300) Subject: silcd: handle empty LIST command reply X-Git-Tag: silc.client.1.1.11~11 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=4b60068a4335802516a283baab8faf9c0715234a;p=silc.git 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. --- 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;