ldb_tdb: Remove pointless check of ldb_dn_is_valid()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 21 May 2018 03:25:33 +0000 (15:25 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2018 05:08:24 +0000 (07:08 +0200)
commit542e7c179112933f82ea68ce6c04c2a596522617
treec2db5328ee91441d42835cbcbfa17e385bed24d1
parentd71c655eecc7bc7963a8858dd3a631ac1e580046
ldb_tdb: Remove pointless check of ldb_dn_is_valid()

If the DN is not valid the ltdb_search_dn1() will catch it with ldb_dn_validate() which
is the only safe way to check this.  ldb_dn_is_valid() does not actually check, but instead
returns only the result of the previous checks, if there was one.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ldb_key_value/ldb_kv_search.c