libcli/security: use NUMERIC_CMP in dom_sid_compare()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 4 Apr 2024 00:43:47 +0000 (13:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 22:56:33 +0000 (22:56 +0000)
commitcb94202c1cf990e871ee2e8e43c577a0e4b9ee6f
tree50f829279a6d3978e480b755647969cd5f026ba9
parent21a071e4864dd739840c2ad4adb0c71ec33f8427
libcli/security: use NUMERIC_CMP in dom_sid_compare()

sid->num_auths is always small (int8 < 16), so this is cosmetic only.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/dom_sid.c