summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-07-01 14:02:12 +1000
committerAndrew Tridgell <tridge@samba.org>2009-07-01 15:15:36 +1000
commit45ba09457eadc8832ff40d2f8c0d5a6cc14ae3f3 (patch)
tree7e67a48b3f05430eedee9e4a7f77a52325a6feac /source4
parentf7a6206b55ee849ceddf7e97be3fc008100ba1c6 (diff)
downloadsamba-45ba09457eadc8832ff40d2f8c0d5a6cc14ae3f3.tar.gz
samba-45ba09457eadc8832ff40d2f8c0d5a6cc14ae3f3.tar.bz2
samba-45ba09457eadc8832ff40d2f8c0d5a6cc14ae3f3.zip
fixed the reference to the global_schema
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/schema/schema_set.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index 976abc2463..8b1188a1b5 100644
--- 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);