summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd.c
diff options
context:
space:
mode:
authorUri Simchoni <urisimchoni@gmail.com>2015-07-13 21:33:41 +0300
committerJeremy Allison <jra@samba.org>2015-07-15 22:41:13 +0200
commitc10e24e1c77a7ec1e020e2b61900eff05daffa29 (patch)
treedd321213287a85eceb899c6946e4639b2c0bcc06 /source3/winbindd/winbindd.c
parentf065100639cc31de03970d41ee82a3e0ddce9c2d (diff)
downloadsamba-c10e24e1c77a7ec1e020e2b61900eff05daffa29.tar.gz
winbindd: keep client list sorted by access time
Keep client list sorted by last access time, newest to oldest. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11397 Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd.c')
-rw-r--r--source3/winbindd/winbindd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 66ea68bac9b..620fd3fb8b6 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -701,7 +701,8 @@ static void process_request(struct winbindd_cli_state *state)
state->cmd_name = "unknown request";
state->recv_fn = NULL;
- state->last_access = time(NULL);
+ /* client is newest */
+ winbindd_promote_client(state);
/* Process command */
@@ -930,8 +931,6 @@ static void new_connection(int listen_sock, bool privileged)
return;
}
- state->last_access = time(NULL);
-
state->privileged = privileged;
req = wb_req_read_send(state, winbind_event_context(), state->sock,