dsdb: use the correct talloc parent in dsdb_repl_merge_working_schema()
authorStefan Metzmacher <metze@samba.org>
Mon, 10 Jun 2013 08:45:25 +0000 (10:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Jun 2013 08:47:43 +0000 (10:47 +0200)
schema->{classes,attributes} are the DLIST pointer not an array.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/repl/replicated_objects.c

index b0abc1acbeec622c51e1dc87ff028c735353f430..e018aa4e779165ade86830ede91bacc916d09a4c 100644 (file)
@@ -58,7 +58,7 @@ static WERROR dsdb_repl_merge_working_schema(struct ldb_context *ldb,
                 * as the rest won't be modified and this is for
                 * a short lived object.
                 */
-               tmp2 = talloc(dest_schema->classes, struct dsdb_class);
+               tmp2 = talloc(dest_schema, struct dsdb_class);
                if (tmp2 == NULL) {
                        return WERR_NOMEM;
                }
@@ -85,7 +85,7 @@ static WERROR dsdb_repl_merge_working_schema(struct ldb_context *ldb,
                 * as the rest won't be modified and this is for
                 * a short lived object.
                 */
-               tmp2 = talloc(dest_schema->attributes, struct dsdb_attribute);
+               tmp2 = talloc(dest_schema, struct dsdb_attribute);
                if (tmp2 == NULL) {
                        return WERR_NOMEM;
                }