diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 9a6f1f3c28..ef6d4700ce 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -121,13 +121,15 @@ static void terminate(void) { pstring path; - idmap_close(); - /* Remove socket file */ pstr_sprintf(path, "%s/%s", WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); unlink(path); + idmap_close(); + + trustdom_cache_shutdown(); + #if 0 if (interactive) { TALLOC_CTX *mem_ctx = talloc_init("end_description"); @@ -1107,7 +1109,5 @@ int main(int argc, char **argv, char **envp) while (1) process_loop(); - trustdom_cache_shutdown(); - return 0; } |