Insure we always return NULL on error.
authorSimo Sorce <idra@samba.org>
Fri, 22 May 2009 01:32:17 +0000 (21:32 -0400)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Jun 2009 10:41:56 +0000 (12:41 +0200)
commita89c969d86ccf6eb74c413dfaa608a99200a86ff
treeff92b4ba0865119998cba4a992d04923b8131ce3
parent7140792b54de7f692cfd10c0563d48c5c6d6d727
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).
(cherry picked from commit c60539f31f63bd65e5b0e3ee16365f036bef3d5b)
source/lib/ldb/common/ldb.c