diff options
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 0965538570..1ea1640e29 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -359,7 +359,8 @@ WERROR dsdb_replicated_objects_convert(struct ldb_context *ldb, * Ensure schema is kept valid for as long as 'out' * which may contain pointers to it */ - talloc_reference(out, schema); + schema = talloc_reference(out, schema); + W_ERROR_HAVE_NO_MEMORY(schema); partition_dn = ldb_dn_new(out, ldb, partition_dn_str); W_ERROR_HAVE_NO_MEMORY_AND_FREE(partition_dn, out); |