From 839fe073594c68d1317828ab4087fd52dc801ad2 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Fri, 17 Dec 2010 22:26:03 +0200 Subject: s4-drepl: Reference current Schema cache into working_schema context working_schema is a shallow copy of current schema and thus depends on part of it. So we want it to be around as long as working_schema is used. Autobuild-User: Kamen Mazdrashki Autobuild-Date: Fri Dec 17 23:34:29 CET 2010 on sn-devel-104 --- source4/dsdb/repl/replicated_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/repl') diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index f3b6356649..d01d3c1e7f 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -476,7 +476,7 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb, */ if (working_schema) { /* store current schema so we can fall back in case of failure */ - cur_schema = dsdb_get_schema(ldb, objects); + cur_schema = dsdb_get_schema(ldb, working_schema); ret = dsdb_reference_schema(ldb, working_schema, false); if (ret != LDB_SUCCESS) { -- cgit