From 95501cf1ba7dbbd2ae5d28bc1e66158d41592c65 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 19 Jan 2002 20:21:29 +0000 Subject: Fix to close winbindd_idmap on exit. Pointed out by Alexander Bokovoy. Jeremy. (This used to be commit 1bd96b3094b530c3426b22b6f891c7fc055e7033) --- source3/nsswitch/winbindd_idmap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/nsswitch/winbindd_idmap.c') diff --git a/source3/nsswitch/winbindd_idmap.c b/source3/nsswitch/winbindd_idmap.c index a96111a608..06d442c565 100644 --- a/source3/nsswitch/winbindd_idmap.c +++ b/source3/nsswitch/winbindd_idmap.c @@ -240,6 +240,13 @@ BOOL winbindd_idmap_init(void) return True; } +BOOL winbindd_idmap_close(void) +{ + if (idmap_tdb) + return (tdb_close(idmap_tdb) == 0); + return True; +} + /* Dump status information to log file. Display different stuff based on the debug level: -- cgit