mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 23:10:39 +01:00
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>
(cherry picked from commit a6a993f950)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1737>
This commit is contained in:
parent
e8302b707d
commit
18c9cd6ab7
1 changed files with 2 additions and 0 deletions
|
|
@ -1885,7 +1885,9 @@ siHostnameAddrMatch(int family, void *addr, int len,
|
|||
if ((f == family) && (len == hostaddrlen) &&
|
||||
(memcmp(addr, hostaddr, len) == 0)) {
|
||||
res = TRUE;
|
||||
#ifdef h_addr
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue