summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-08 21:53:22 +0100
committerVolker Lendecke <vl@samba.org>2011-03-18 15:46:37 +0100
commit39478450418cc65f6c4f753ffa08dca7f7f7ebeb (patch)
treeeed65e9a08a67d585d339b4776d15b8a6c7d8096 /source3/winbindd
parent6e9fb079583fb2781987ee40eda47a956a5c4e82 (diff)
downloadsamba-39478450418cc65f6c4f753ffa08dca7f7f7ebeb.tar.gz
samba-39478450418cc65f6c4f753ffa08dca7f7f7ebeb.tar.bz2
samba-39478450418cc65f6c4f753ffa08dca7f7f7ebeb.zip
idmap-autorid: Slightly simplify idmap_autorid_get_domainrange
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_autorid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 437c03800d..434de25171 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -107,13 +107,12 @@ static NTSTATUS idmap_autorid_get_domainrange(struct db_context *db,
ret = dbwrap_trans_store_bystring(db, numstr,
string_term_tdb_data(sidstr),
TDB_INSERT);
+ talloc_free(numstr);
if (!NT_STATUS_IS_OK(ret)) {
- talloc_free(numstr);
DEBUG(1, ("Fatal error while storing "
"new domain->range assignment!\n"));
goto error;
}
- talloc_free(numstr);
DEBUG(5, ("Acquired new range #%d for domain %s\n",
domainnum, sidstr));
}