s4:ldb Fix segfault in ldbsearch store_referral callback
commit3c202519eccfa1922f315e2f2910d832016ad3f1
authorAndrew Bartlett <abartlet@samba.org>
Thu, 25 Feb 2010 00:46:41 +0000 (25 11:46 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 25 Feb 2010 01:56:19 +0000 (25 12:56 +1100)
treef583d65e02dcec0c9aa19dd67262df0e1cb3ad60
parent26891651ec8dd68113ff0f49d996c3e70d55933e
s4:ldb Fix segfault in ldbsearch store_referral callback

sctx->refs_store was not initialised, and that made talloc_realloc
grumpy once we started actually returning referrals regularly from
Samba4's partitions module (0be57c747825737fa9d64411223e693b055b5f8f
by mdw).

We now just use talloc_zero() and forget about this manual
initialisation work.  Tracking down use of uninitialised variables
with valgrind was the grand idea when this started, but in practice we
just get segfaults in unusual places.

Andrew Bartlett
source4/lib/ldb/tools/ldbsearch.c