X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=48033266a4e0eb5f7ced7b97007340b52f18e0f3;hb=3304e90317ca1ddc3c3301bdca6257f1f35da9e8;hp=2d0f493e7b928c462e1ffdcc69fd5ba3eccca9ea;hpb=d5b383775b63161db8d94f21df4b3f4029ba2866;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 2d0f493e..48033266 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -2458,6 +2458,12 @@ SILC_SERVER_CMD_FUNC(kill) } } + if (remote_client->data.registered == FALSE) { + silc_server_command_send_status_reply(cmd, SILC_COMMAND_KILL, + SILC_STATUS_ERR_NO_SUCH_CLIENT_ID); + goto out; + } + /* Get comment */ comment = silc_argument_get_arg_type(cmd->args, 2, &tmp_len2); if (tmp_len2 > 128)