os: Fix siHostnameAddrMatch in the case where h_addr isn't defined
When IPv6 support isn't enabled, and h_addr isn't defined, there is no for loop, so the break statement is invalid. Signed-off-by: Joaquim Monteiro <joaquim.monteiro@protonmail.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1572>
This commit is contained in:
parent
0ddcd87851
commit
a6a993f950
|
@ -1867,7 +1867,9 @@ siHostnameAddrMatch(int family, void *addr, int len,
|
||||||
if ((f == family) && (len == hostaddrlen) &&
|
if ((f == family) && (len == hostaddrlen) &&
|
||||||
(memcmp(addr, hostaddr, len) == 0)) {
|
(memcmp(addr, hostaddr, len) == 0)) {
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
#ifdef h_addr
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue