]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:dsdb:util_trusts: simplify the NULL case in dns_cmp
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 1 May 2024 04:26:14 +0000 (16:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 May 2024 23:25:35 +0000 (23:25 +0000)
commitb37186cf917ba9416b9d255e2d00d24cb8d12347
tree7e4d88247b0d90a1980c867684eb32bb210b031e
parent91b802941c17f81398b08a66b5bedfa1127db070
s4:dsdb:util_trusts: simplify the NULL case in dns_cmp

In this comparison function a NULL string is treated as the ancestor
of all names, but you need to look hard to see that.

By pulling the logic for NULLs to the front, hopefully we have to look
less hard.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util_trusts.c