summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-07 16:20:16 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-07 16:20:16 +1100
commitb3377ef2ea71489749787ba13fba4dba1e9b6c6c (patch)
treee9e8eef4148f8496fcb1044dce2dd0004572230f /source4/dsdb/repl
parent8dedceaff9543ce92d9ad51f67c5c51cd63e7931 (diff)
downloadsamba-b3377ef2ea71489749787ba13fba4dba1e9b6c6c.tar.gz
samba-b3377ef2ea71489749787ba13fba4dba1e9b6c6c.tar.bz2
samba-b3377ef2ea71489749787ba13fba4dba1e9b6c6c.zip
s4-drs: fixed a memory error introduced yesterday
ids is retrurned via _ids, so it needs to be on the passed in mem_ctx
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/replicated_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c
index 9877803cba..ec5dcd4720 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -444,7 +444,7 @@ WERROR dsdb_origin_objects_commit(struct ldb_context *ldb,
}
}
- ids = talloc_array(objects,
+ ids = talloc_array(mem_ctx,
struct drsuapi_DsReplicaObjectIdentifier2,
num_objects);
if (ids == NULL) {