This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch dev-1-2-9 in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit d5713ae0f689686c185cb4f8349411c1f2b9d53d Author: Alan M. Carroll <[email protected]> AuthorDate: Tue Jul 28 17:19:26 2020 -0500 Fix missing copy constructor for IPEndPoint. --- code/include/swoc/swoc_ip.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/include/swoc/swoc_ip.h b/code/include/swoc/swoc_ip.h index 4dfab0f..2614e59 100644 --- a/code/include/swoc/swoc_ip.h +++ b/code/include/swoc/swoc_ip.h @@ -1,4 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // Copyright Network Geographics 2014 /** @file IP address and network related classes. @@ -59,6 +60,8 @@ union IPEndpoint { /// Default construct invalid instance. IPEndpoint(); + IPEndpoint(self_type const& that); + /// Construct from the @a text representation of an address. IPEndpoint(string_view const& text); @@ -2040,6 +2043,9 @@ inline IPEndpoint::IPEndpoint(sockaddr const *sa) { this->assign(sa); } +inline IPEndpoint::IPEndpoint(IPEndpoint::self_type const& that) : self_type(&that.sa) { +} + inline IPEndpoint& IPEndpoint::invalidate() { sa.sa_family = AF_UNSPEC;
