summaryrefslogtreecommitdiff
path: root/src/server_remove.c
diff options
context:
space:
mode:
authorJakub Sławiński2006-09-13 12:37:54 +0200
committerJoshua Judson Rosen2014-07-17 21:15:02 +0200
commit48bc33c5c5cf16fb42b1794c1f9c1887933daf15 (patch)
treefe8a5059a47af5ef2526af5351658f463304241e /src/server_remove.c
parentv0.8.1 (diff)
downloadapf-48bc33c5c5cf16fb42b1794c1f9c1887933daf15.tar.gz
v0.8.2
- Fixed: bug in resource deallocation for remote admin clients
Diffstat (limited to 'src/server_remove.c')
-rw-r--r--src/server_remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server_remove.c b/src/server_remove.c
index 93dcf15..53307b8 100644
--- a/src/server_remove.c
+++ b/src/server_remove.c
@@ -107,9 +107,9 @@ remove_raclient(ServerRealm* ptr, int client, fd_set* set, fd_set* wset, TaskSch
close(SslFd_get_fd(ConnectClient_get_sslFd(ServerRealm_get_raClientsTable(ptr)[client])));
FD_CLR(SslFd_get_fd(ConnectClient_get_sslFd(ServerRealm_get_raClientsTable(ptr)[client])), set);
if (scheduler) {
- if ((task = ConnectClient_get_task(ServerRealm_get_clientsTable(ptr)[client]))) {
+ if ((task = ConnectClient_get_task(ServerRealm_get_raClientsTable(ptr)[client]))) {
TaskScheduler_removeTask(scheduler, task);
- ConnectClient_set_task(ServerRealm_get_clientsTable(ptr)[client], NULL);
+ ConnectClient_set_task(ServerRealm_get_raClientsTable(ptr)[client], NULL);
}
}
SSL_clear(SslFd_get_ssl(ConnectClient_get_sslFd(ServerRealm_get_raClientsTable(ptr)[client])));