mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
WPS UPnP: Fix FreeBSD build
struct ifreq does not include the ifr_netmask alternative on FreeBSD, so
replace that more specific name with ifr_addr that works with both Linux
and FreeBSD.
Fixes: 5b78c8f961
("WPS UPnP: Do not allow event subscriptions with URLs to other networks")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
892ac42bdc
commit
f119f8a04a
@ -951,7 +951,7 @@ int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
|
|||||||
errno, strerror(errno));
|
errno, strerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
addr = (struct sockaddr_in *) &req.ifr_netmask;
|
addr = (struct sockaddr_in *) &req.ifr_addr;
|
||||||
netmask->s_addr = addr->sin_addr.s_addr;
|
netmask->s_addr = addr->sin_addr.s_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user