check return value before using key_values
authorAndrej Gessel <Andrej.Gessel@janztec.com>
Tue, 19 Jun 2018 08:07:51 +0000 (10:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jun 2018 07:19:17 +0000 (09:19 +0200)
commit2a3f91ea027eb1d24568b96036801d3f9e5a13f2
treeac065ef0b84894db123bca91504ac1f576fb110b
parent7a1906d92412f32a2e481b1ad4178bed0b87d0ca
check return value before using key_values

there are also mem leaks in this function

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13475

Signed-off-by: Andrej Gessel <Andrej.Gessel@janztec.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f75e8f58cd2390c092631803d333adadb475306a)
lib/ldb/ldb_tdb/ldb_index.c