mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
- we need to rescan the trusted domain list regularly to cope with
transitive trusts, and trusts that are added while winbindd is running - removed an unnecessary call to time() (This used to be commit 14489ff30bb9eca2c55d36a69c0b45a2db339061)
This commit is contained in:
parent
909ac9ed0d
commit
d0c11644dc
@ -521,6 +521,10 @@ static void process_loop(int accept_sock)
|
||||
|
||||
message_dispatch();
|
||||
|
||||
/* rescan the trusted domains list. This must be done
|
||||
regularly to cope with transitive trusts */
|
||||
rescan_trusted_domains();
|
||||
|
||||
/* Free up temporary memory */
|
||||
|
||||
lp_talloc_free();
|
||||
|
@ -157,7 +157,7 @@ void rescan_trusted_domains(void)
|
||||
if ((unsigned)(t - last_scan) < WINBINDD_RESCAN_FREQ) {
|
||||
return;
|
||||
}
|
||||
last_scan = time(NULL);
|
||||
last_scan = t;
|
||||
|
||||
DEBUG(1, ("scanning trusted domain list\n"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user