mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:winbind Kill amusing but un-used winbindd_kill_all_clients
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
d266f8fdf1
commit
8d6f88b469
@ -424,7 +424,6 @@ int open_winbindd_priv_socket(void);
|
||||
struct winbindd_cli_state *winbindd_client_list(void);
|
||||
void winbindd_add_client(struct winbindd_cli_state *cli);
|
||||
void winbindd_remove_client(struct winbindd_cli_state *cli);
|
||||
void winbindd_kill_all_clients(void);
|
||||
int winbindd_num_clients(void);
|
||||
NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
|
@ -1101,23 +1101,6 @@ void winbindd_remove_client(struct winbindd_cli_state *cli)
|
||||
_num_clients--;
|
||||
}
|
||||
|
||||
/* Close all open clients */
|
||||
|
||||
void winbindd_kill_all_clients(void)
|
||||
{
|
||||
struct winbindd_cli_state *cl = winbindd_client_list();
|
||||
|
||||
DEBUG(10, ("winbindd_kill_all_clients: going postal\n"));
|
||||
|
||||
while (cl) {
|
||||
struct winbindd_cli_state *next;
|
||||
|
||||
next = cl->next;
|
||||
winbindd_remove_client(cl);
|
||||
cl = next;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return number of open clients */
|
||||
|
||||
int winbindd_num_clients(void)
|
||||
|
Loading…
Reference in New Issue
Block a user