git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e9fb07
)
idmap-autorid: Slightly simplify idmap_autorid_get_domainrange
author
Volker Lendecke
<vl@samba.org>
Tue, 8 Mar 2011 20:53:22 +0000
(21:53 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 18 Mar 2011 14:46:37 +0000
(15:46 +0100)
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
source3/winbindd/idmap_autorid.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_autorid.c
b/source3/winbindd/idmap_autorid.c
index 437c03800da17125ff879ac030244c1045b6db96..434de25171730e6d103d70d178d47bcac8af706d 100644
(file)
--- 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));
}