0
0
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:
David Sommerseth 2024-03-20 16:58:05 +01:00
parent 4f1f22159f
commit 7f3e61089b
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -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();