git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20a2e7f
)
autorid: initialize: link config to commonconfig as soon as it is allocated.
author
Michael Adam
<obnox@samba.org>
Thu, 20 Mar 2014 23:03:02 +0000
(
00:03
+0100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 2 Apr 2014 22:26:28 +0000
(
00:26
+0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/idmap_autorid.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_autorid.c
b/source3/winbindd/idmap_autorid.c
index b3572a1148c80338dbcc7ecbf450f430724a295d..e9b5d2ce3c596681d66331412128ed56c0f5eea0 100644
(file)
--- a/
source3/winbindd/idmap_autorid.c
+++ b/
source3/winbindd/idmap_autorid.c
@@
-611,6
+611,7
@@
static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
DEBUG(0, ("Out of memory!\n"));
return NT_STATUS_NO_MEMORY;
}
+ commonconfig->private_data = config;
status = idmap_autorid_db_init(state_path("autorid.tdb"),
NULL, /* TALLOC_CTX */
@@
-649,7
+650,6
@@
static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
"ignore builtin", false);
/* fill the TDB common configuration */
- commonconfig->private_data = config;
commonconfig->db = autorid_db;
commonconfig->max_id = config->rangesize -1;