s4:dsdb/repl: avoid reallocation of msg->elements
commitd81d6afd6f0d661b836885f57ab397c1e905a90b
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Aug 2012 13:31:16 +0000 (13 15:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 Aug 2012 08:40:55 +0000 (14 10:40 +0200)
treeae8a17a932085170c036f14d4493e8327054ef5e
parent956678685325a79a315f4ef19c0d834fd1747e4c
s4:dsdb/repl: avoid reallocation of msg->elements

The index into the elements needs to match between
msg->elements and md->ctr.ctr1.array, which means we should
pre-allocate them with the same size.

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze
source4/dsdb/repl/replicated_objects.c