Cancel future rekeys on a detaching client connection.
[silc.git] / apps / silcd / command.c
index 698b22657ac1c719dbfc455c7ae8e6a45ffb6a7f..f68edccdc589984e4c364c4e4220df0ad1636201 100644 (file)
@@ -4074,6 +4074,9 @@ SILC_TASK_CALLBACK(silc_server_command_detach_cb)
   if (client && client->connection) {
     sock = client->connection;
 
+    /* Stop rekey for the client. */
+    silc_server_stop_rekey(server, client);
+
     /* Close the connection on our side */
     client->router = NULL;
     client->connection = NULL;