updates
[silc.git] / apps / silcd / command.c
index 7e08a6ef6fd6a7d03414f2f90271c442f00da3b7..9ceb7caaf403e11568a81a0eaffc75e3bdf69b07 100644 (file)
@@ -148,6 +148,11 @@ SILC_TASK_CALLBACK(silc_server_command_process_timeout)
   SilcServerCommandTimeout timeout = (SilcServerCommandTimeout)context;
   SilcClientEntry client = (SilcClientEntry)timeout->ctx->sock->user_data;
 
+  if (!client) {
+    silc_server_command_free(timeout->ctx);
+    silc_free(timeout);
+  }
+
   /* Update access time */
   client->last_command = time(NULL);