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:
f7a6206
)
fixed the reference to the global_schema
author
Andrew Tridgell
<tridge@samba.org>
Wed, 1 Jul 2009 04:02:12 +0000
(14:02 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 1 Jul 2009 05:15:36 +0000
(15:15 +1000)
source4/dsdb/schema/schema_set.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/schema/schema_set.c
b/source4/dsdb/schema/schema_set.c
index 976abc2463bcd4eb2e64fa3907a8853370939c23..8b1188a1b5bf57b382b5c2750770eb8c30fd1134 100644
(file)
--- a/
source4/dsdb/schema/schema_set.c
+++ b/
source4/dsdb/schema/schema_set.c
@@
-433,10
+433,11
@@
void dsdb_make_schema_global(struct ldb_context *ldb)
}
if (global_schema) {
- talloc_unlink(talloc_autofree_context(), schema);
+ talloc_unlink(talloc_autofree_context(),
global_
schema);
}
- talloc_steal(talloc_autofree_context(), schema);
+ /* we want the schema to be around permanently */
+ talloc_reference(talloc_autofree_context(), schema);
global_schema = schema;
dsdb_set_global_schema(ldb);