summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-12-10 04:08:58 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-15 00:51:19 +0100
commit2b74838c14f4ee77236634c7b10b8ac26eff40fa (patch)
tree4558b3c78999737b85fcf1bad7248229245453d3 /source4/dsdb/schema
parent3a8fa09c4f1691346dadf975bc456e696b09ef65 (diff)
downloadsamba-2b74838c14f4ee77236634c7b10b8ac26eff40fa.tar.gz
samba-2b74838c14f4ee77236634c7b10b8ac26eff40fa.tar.xz
samba-2b74838c14f4ee77236634c7b10b8ac26eff40fa.zip
s4-dsdb_schema: We need base_dn in Schema's shallow copy too
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 977941e584e..00170a2d393 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);