ldb:ldb_controls.c - always allocate enough space
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 6 Mar 2011 19:16:43 +0000 (20:16 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 10 Mar 2011 10:12:04 +0000 (11:12 +0100)
commit78c9eb1a06a696fc6ba85110a4f7d661bbb661d3
treef162cdddac3e88edb5746b6892a2ca8b3eef3d5c
parent851396a627ed2c09c5e309fc72cfa2a10c3c3726
ldb:ldb_controls.c - always allocate enough space

The size for an additional "struct ldb_control" shouldn't hurt and so
the excluded control can also be NULL.

Added an ending "talloc_realloc" to resize the chunk to the
effective needed size (requested by tridge).
source4/lib/ldb/common/ldb_controls.c