From a25824bc9116a364ff842b5f756ef25d830c51db Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 27 May 2022 15:26:26 +0200 Subject: [PATCH] Fix wxIPV6address initialization Use DoInitImpl() which, somehow, was never used before, meaning that, apparently, wxIPV6address never worked at all, as objects of this type were still initialized to use FAMILY_INET (i.e. IPv4 address family). Closes #22463. --- src/common/sckaddr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index 775f0cc3ea..979dc4ebd4 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -796,7 +796,7 @@ void wxSockAddress::Clear() wxSockAddressImpl& wxIPaddress::GetImpl() { if ( m_impl->GetFamily() == wxSockAddressImpl::FAMILY_UNSPEC ) - m_impl->CreateINET(); + DoInitImpl(); return *m_impl; }