dns-domain: use CMP() in dns_name_compare_func

This commit is contained in:
Filipe Brandenburger 2018-08-06 19:23:41 -07:00
parent 53c5797fbd
commit b994fe95a1
1 changed files with 1 additions and 1 deletions

View File

@ -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)