1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Merge from appliance branch:

Don't call find_domain_from_name() from winbindd_kill_connections() as
you get stuck in an infinite loop!
This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 0fe11c329f
commit 8e982941d8

View File

@ -224,11 +224,17 @@ BOOL domain_handles_open(struct winbindd_domain *domain)
void winbindd_kill_connections(struct winbindd_domain *domain)
{
BOOL is_server = False;
struct winbindd_domain *server_domain;
struct winbindd_domain *server_domain = NULL, *tmp;
/* Find pointer to domain of pdc */
server_domain = find_domain_from_name(lp_workgroup());
for (tmp = domain_list; tmp != NULL; tmp = tmp->next) {
if (strequal(domain->name, tmp->name)) {
server_domain = tmp;
break;
}
}
if (!server_domain) return;
/* If NULL passed, use pdc */