From 2b74838c14f4ee77236634c7b10b8ac26eff40fa Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Fri, 10 Dec 2010 04:08:58 +0200 Subject: s4-dsdb_schema: We need base_dn in Schema's shallow copy too --- source4/dsdb/schema/schema_init.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index 977941e584..00170a2d39 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -57,11 +57,17 @@ struct dsdb_schema *dsdb_schema_copy_shallow(TALLOC_CTX *mem_ctx, return NULL; } + /* schema base_dn */ + schema_copy->base_dn = ldb_dn_copy(schema_copy, schema->base_dn); + if (!schema_copy->base_dn) { + goto failed; + } + /* copy prexiMap & schemaInfo */ schema_copy->prefixmap = dsdb_schema_pfm_copy_shallow(schema_copy, schema->prefixmap); if (!schema_copy->prefixmap) { - return NULL; + goto failed; } schema_copy->schema_info = talloc_strdup(schema_copy, schema->schema_info); -- cgit