From 87e328a1fbfcacafc013ba580d31dd4123f1e7e2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 13 Jul 2018 00:47:53 +0100 Subject: Add the family() member to the sockaddrs union. --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 1e2554107..aa5100ce7 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -325,7 +325,7 @@ CullResult User::cull() if (!quitting) ServerInstance->Users->QuitUser(this, "Culled without QuitUser"); - if (client_sa.sa.sa_family != AF_UNSPEC) + if (client_sa.family() != AF_UNSPEC) ServerInstance->Users->RemoveCloneCounts(this); return Extensible::cull(); @@ -706,7 +706,7 @@ const std::string& User::GetRealHost() const irc::sockets::cidr_mask User::GetCIDRMask() { unsigned char range = 0; - switch (client_sa.sa.sa_family) + switch (client_sa.family()) { case AF_INET6: range = ServerInstance->Config->c_ipv6_range; -- cgit v1.2.3