1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r19927: Fix klokwork ID 4702

This commit is contained in:
Volker Lendecke 2006-11-28 08:11:04 +00:00 committed by Gerald (Jerry) Carter
parent a3e1682ba3
commit 820a64af25

View File

@ -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"));