Fixed error handling of invalid client entry.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 7 Jan 2003 18:09:19 +0000 (18:09 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 7 Jan 2003 18:09:19 +0000 (18:09 +0000)
CHANGES
apps/silcd/command.c

diff --git a/CHANGES b/CHANGES
index 40e281ac905e35aadc754d78f077345796baa8cf..1cbd8b2467d8557e0826e310d73104733c007801 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
+
+       * 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 <priikone@silcnet.org>
 
        * Added some sanity checks in server for correctness of the
index 78beef6f58c38c90c71ae045894c8c16000351e1..6861d1365638260f8c919ca57c5d45343bb4ed54 100644 (file)
@@ -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));