summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 12:42:16 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 12:48:21 +0100
commitc0d33508ff6b7c3b90e672d20246b1c9e359cf80 (patch)
tree58af439e926e7fffbe2d01a3310f615ddd58fbb7
parent68ec31427735e3d127544e52d4107d1e97eeeada (diff)
downloadsamba-c0d33508ff6b7c3b90e672d20246b1c9e359cf80.tar.gz
samba-c0d33508ff6b7c3b90e672d20246b1c9e359cf80.tar.bz2
samba-c0d33508ff6b7c3b90e672d20246b1c9e359cf80.zip
Add secrets_shutdown().
Guenther (This used to be commit dd3fbd93b6e5fe8b5e3a3727a64a38d5ae46fcbf)
-rw-r--r--source3/passdb/secrets.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 8e0afe7c32..330ffbc853 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -94,6 +94,19 @@ bool secrets_init(void)
return True;
}
+/*
+ * close secrets.tdb
+ */
+void secrets_shutdown(void)
+{
+ if (!tdb) {
+ return;
+ }
+
+ tdb_close(tdb);
+ tdb = NULL;
+}
+
/* read a entry from the secrets database - the caller must free the result
if size is non-null then the size of the entry is put in there
*/