mirror of
https://github.com/bstansell/conserver.git
synced 2025-04-08 03:24:12 +00:00
Add conditional for FreeBSD to use the correct structure element for address
This commit is contained in:
parent
08e8f7667d
commit
2a9f3d981f
@ -1941,7 +1941,11 @@ ProbeInterfaces(in_addr_t bindAddr)
|
||||
if ((ifc.ifc_len - r) < sizeof(*ifr))
|
||||
break;
|
||||
# ifdef HAVE_SA_LEN
|
||||
# ifdef __FreeBSD__
|
||||
if (sa->sa_len > sizeof(ifr->ifr_addr))
|
||||
# else
|
||||
if (sa->sa_len > sizeof(ifr->ifr_ifru))
|
||||
# endif
|
||||
r += sizeof(ifr->ifr_name) + sa->sa_len;
|
||||
else
|
||||
# endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user