git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dedcea
)
s4-drs: fixed a memory error introduced yesterday
author
Andrew Tridgell
<tridge@samba.org>
Wed, 7 Oct 2009 05:20:16 +0000
(16:20 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 7 Oct 2009 05:20:16 +0000
(16:20 +1100)
ids is retrurned via _ids, so it needs to be on the passed in mem_ctx
source4/dsdb/repl/replicated_objects.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/repl/replicated_objects.c
b/source4/dsdb/repl/replicated_objects.c
index 9877803cbaa5b12dddc5c4cc02cf316a0508d7e0..ec5dcd472054964ef561a28b3b82e21e381e5631 100644
(file)
--- 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) {