summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-28 08:11:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:10 -0500
commit78a0932145780d835d2ae7b7057328fc2c799a2a (patch)
tree4f49962a4b30c74d3227a5059fe980cc76c7c9e9 /source3/groupdb
parent16a076ae746626652df3f2ea0b476f0eac42b389 (diff)
downloadsamba-78a0932145780d835d2ae7b7057328fc2c799a2a.tar.gz
samba-78a0932145780d835d2ae7b7057328fc2c799a2a.tar.bz2
samba-78a0932145780d835d2ae7b7057328fc2c799a2a.zip
r19927: Fix klokwork ID 4702
(This used to be commit 820a64af25799c19f1731a08b8e4651aea8a516b)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping_ldb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c
index 5d350e477c..29d5b49edf 100644
--- a/source3/groupdb/mapping_ldb.c
+++ b/source3/groupdb/mapping_ldb.c
@@ -667,7 +667,10 @@ static BOOL mapping_upgrade(const char *tdb_path)
ret = tdb_traverse(tdb, upgrade_alias_record, &status);
if (ret == -1 || status == -1) goto failed;
- if (tdb) tdb_close(tdb);
+ if (tdb) {
+ tdb_close(tdb);
+ tdb = NULL;
+ }
pstrcpy(old_path, tdb_path);
pstrcpy(new_path, lock_path("group_mapping.tdb.upgraded"));