summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_idmap.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-19 20:21:29 +0000
committerJeremy Allison <jra@samba.org>2002-01-19 20:21:29 +0000
commit1bd96b3094b530c3426b22b6f891c7fc055e7033 (patch)
tree95cc123861d52c717bd20e40e0b0340fb3b44338 /source/nsswitch/winbindd_idmap.c
parent6b123adda901ff05b0271eeda060297448f64eec (diff)
downloadsamba-1bd96b3094b530c3426b22b6f891c7fc055e7033.tar.gz
samba-1bd96b3094b530c3426b22b6f891c7fc055e7033.tar.xz
samba-1bd96b3094b530c3426b22b6f891c7fc055e7033.zip
Fix to close winbindd_idmap on exit. Pointed out by Alexander Bokovoy.
Jeremy.
Diffstat (limited to 'source/nsswitch/winbindd_idmap.c')
-rw-r--r--source/nsswitch/winbindd_idmap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_idmap.c b/source/nsswitch/winbindd_idmap.c
index a96111a6084..06d442c5655 100644
--- a/source/nsswitch/winbindd_idmap.c
+++ b/source/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: