From 1f302428374f61a957452dc77194bd36eeff6ddc Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 7 Jan 2003 18:09:19 +0000 Subject: [PATCH] Fixed error handling of invalid client entry. --- CHANGES | 6 ++++++ apps/silcd/command.c | 2 ++ 2 files changed, 8 insertions(+) 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)); -- 2.24.0