diff options
author | Jakub Sławiński | 2005-11-03 20:37:56 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:00 +0200 |
commit | 63bbc710b23893742e5ccbd430f95bf2d29c2da6 (patch) | |
tree | 06d0585724cff8a4f1a7c052b5b89fd12c404094 /src/server_eval.c | |
parent | v0.7.2 (diff) | |
download | apf-63bbc710b23893742e5ccbd430f95bf2d29c2da6.tar.gz |
v0.7.4
- Fixed: sockets in CLOSE_WAIT state left by afclient
- Added: --localname and --localport options
- Added: --localdesname option
- Added: kicking user in 'opening' state
- Fixed: info about kicked user
- Fixed: TERM signal handling
- Fixed: id lost after reconnection
- Fixed: printing wrong client name in 'SSL_accept failed (timeout)' message
- Fixed: ignored 'certificate' and 'key' options from config file
- Added: config files for afclient
- Modified: some options in afserver config file
Diffstat (limited to 'src/server_eval.c')
-rw-r--r-- | src/server_eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server_eval.c b/src/server_eval.c index 4996621..99bd962 100644 --- a/src/server_eval.c +++ b/src/server_eval.c @@ -23,10 +23,10 @@ #include "server_eval.h" int -eval_numofcon(RealmT* ptr, int client, int numofcon) +eval_numofcon(ServerRealm* ptr, int client, int numofcon) { - if ((numofcon >= 0) && (numofcon < ConnectClient_get_limit(ptr->clitable[client]))) { - numofcon = ConnectClient_get_users(ptr->clitable[client])[numofcon]; + if ((numofcon >= 0) && (numofcon < ConnectClient_get_limit(ServerRealm_get_clientsTable(ptr)[client]))) { + numofcon = ConnectClient_get_users(ServerRealm_get_clientsTable(ptr)[client])[numofcon]; } else { numofcon = -1; |