ldb_tdb: replace strange dn_list_cmp() in index code
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Aug 2017 05:00:48 +0000 (17:00 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Sep 2017 19:20:20 +0000 (21:20 +0200)
commitc17404826e46bb9f5cd7dc36f7c90c961bd2a0f4
tree6008bcf973ba515f6b1f02b911698de4c415817a
parenta44d3aedba15f96c84f9d83b0cace7e0d8141f13
ldb_tdb: replace strange dn_list_cmp() in index code

This replaces dn_list_cmp() with functions that do not attempt to
to care about string termination.  All index values are case sensitive
and correctly length-bound already, even for a DN index
so just use a length check and memcmp()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_index.c