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:
parent
a3e1682ba3
commit
820a64af25
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user