ldb_mod_op_test: Fix core dump on ldb_case_attrs_index_test_teardown
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 22 Jan 2018 22:02:28 +0000 (11:02 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Mar 2018 19:50:14 +0000 (20:50 +0100)
commitc4c64ff51f7ee6a332f71f093ffd37e06745e785
tree04127b4d99a26ddac4fc9ed0dd0c5574b72d1067
parent242cf337e9e9d72f8c919d0772fd5e35fb2422dc
ldb_mod_op_test: Fix core dump on ldb_case_attrs_index_test_teardown

With no schema syntax, this would occasionally crash as it dereferenced
some possibly NULL sequence of memory.

Note: Removing all tests except this one, made it crash reliably.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/ldb_mod_op_test.c