From: Pekka Riikonen Date: Tue, 7 Jan 2003 18:09:19 +0000 (+0000) Subject: Fixed error handling of invalid client entry. X-Git-Tag: silc.client.0.9.11~6 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=1f302428374f61a957452dc77194bd36eeff6ddc;p=silc.git Fixed error handling of invalid client entry. --- diff --git a/CHANGES b/CHANGES index 40e281ac..1cbd8b24 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Tue Jan 7 20:08:15 EET 2003 Pekka Riikonen + + * Fixed error handling of invalid client entry when calling + commands in server. Fixes a crash. Affected file + silcd/command.c. + Thu Dec 26 14:19:29 EET 2002 Pekka Riikonen * Added some sanity checks in server for correctness of the diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 78beef6f..6861d136 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -160,6 +160,7 @@ SILC_TASK_CALLBACK(silc_server_command_process_timeout) SILC_LOG_DEBUG(("Client entry is invalid")); silc_server_command_free(timeout->ctx); silc_free(timeout); + return; } /* Update access time */ @@ -239,6 +240,7 @@ void silc_server_command_process(SilcServer server, if (!client) { SILC_LOG_DEBUG(("Client entry is invalid")); silc_server_command_free(ctx); + return; } timeout = silc_calloc(1, sizeof(*timeout));