mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 03:25:27 +03:00
dns-domain: use CMP() in dns_name_compare_func
This commit is contained in:
parent
53c5797fbd
commit
b994fe95a1
@ -503,7 +503,7 @@ int dns_name_compare_func(const void *a, const void *b) {
|
||||
r = dns_label_unescape_suffix(a, &x, la, sizeof(la));
|
||||
q = dns_label_unescape_suffix(b, &y, lb, sizeof(lb));
|
||||
if (r < 0 || q < 0)
|
||||
return r - q;
|
||||
return CMP(r, q);
|
||||
|
||||
r = ascii_strcasecmp_nn(la, r, lb, q);
|
||||
if (r != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user