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:
3a8fa09
)
s4-dsdb_schema: We need base_dn in Schema's shallow copy too
author
Kamen Mazdrashki
<kamenim@samba.org>
Fri, 10 Dec 2010 02:08:58 +0000
(
04:08
+0200)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Tue, 14 Dec 2010 23:51:19 +0000
(
00:51
+0100)
source4/dsdb/schema/schema_init.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/schema/schema_init.c
b/source4/dsdb/schema/schema_init.c
index 977941e584e91c815a3c1e994eb6b7708bac9a5f..00170a2d39339a2fcf4a24c302bd7bbc0dd149ce 100644
(file)
--- 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);