Insure we always return NULL on error.
commitc60539f31f63bd65e5b0e3ee16365f036bef3d5b
authorSimo Sorce <idra@samba.org>
Fri, 22 May 2009 01:32:17 +0000 (21 21:32 -0400)
committerKarolin Seeger <kseeger@samba.org>
Sat, 23 May 2009 19:00:46 +0000 (23 21:00 +0200)
treedc091778077e1dafd052414da37b26a68febaef4
parenta7f96104b957ba0eb910f8c0073818f872345e3c
Insure we always return NULL on error.

It is not technically an ldb bug, but apparently some callers try to access
res before checking the ldb_search() return code.
So make their attempt very evident (a NULL dereference will make it cristal
clear where the bug is).
source/lib/ldb/common/ldb.c