mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-19 19:52:15 +02:00
mac/gw: Fix incorrect additional )
In commit 1b4f736bb9
, an additional parentheses was added to
the MacGatewayInfo constructor. This results in code which cannot be
compiled.
Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
parent
4f1f22159f
commit
7f3e61089b
@ -217,7 +217,7 @@ class MacGatewayInfo
|
||||
if (::ioctl(sockfd(), SIOCGIFNETMASK, (char *)&ifr) < 0)
|
||||
throw route_gateway_error("GDG: ioctl SIOCGIFNETMASK failed");
|
||||
|
||||
gateway_.netmask = IP::Addr::from_sockaddr(&ifr.ifr_addr));
|
||||
gateway_.netmask = IP::Addr::from_sockaddr(&ifr.ifr_addr);
|
||||
flags_ |= NETMASK_DEFINED;
|
||||
|
||||
sockfd.close();
|
||||
|
Loading…
Reference in New Issue
Block a user