Gert Doering has uploaded a new patch set (#2) to the change originally created by Răzvan Cojocaru. ( https://gerrit.openvpn.net/c/openvpn/+/2326?usp=email )
The following approvals got outdated and were removed: Code-Review+2 by Gert Doering Change subject: socket: check the address family in addrlist_match() ...................................................................... socket: check the address family in addrlist_match() addrlist_match() cast each remote list entry to the peer's address family without checking ai_family. With a dual-stack remote list, an IPv6 peer compared against an IPv4 entry read past the end of its sockaddr_in, and 0.0.0.0 matched any IPv6 entry. Skip entries of the other family, as addrlist_port_match() already does. Change-Id: Ic3efcdb7bc4e60a81b9292adfe7f8e22b86e274a (cherry picked from commit 756d140aca1958f71a701b4179e2e59fd3d86ead) Signed-off-by: Razvan Cojocaru <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2326 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg41809.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpn/socket.h 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/26/2326/2 diff --git a/src/openvpn/socket.h b/src/openvpn/socket.h index 47083ad..80f09a3 100644 --- a/src/openvpn/socket.h +++ b/src/openvpn/socket.h @@ -736,6 +736,10 @@ const struct addrinfo *curele; for (curele = addrlist; curele; curele = curele->ai_next) { + if (a1->addr.sa.sa_family != curele->ai_family) + { + continue; + } switch (a1->addr.sa.sa_family) { case AF_INET: -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/2326?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: Ic3efcdb7bc4e60a81b9292adfe7f8e22b86e274a Gerrit-Change-Number: 2326 Gerrit-PatchSet: 2 Gerrit-Owner: Răzvan Cojocaru <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Gert Doering <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
