As discussed on IRC - we're not sure if this can actually be reached, and
how, but there is no risk of heap overread here because both sides are
openvpn_sockaddr, so big enough. It's still not code that feels safe,
so the extra check is good.
Since it's not an actual bug, just "hardening and improving the code",
not applied to 2.7 (for now).
Your patch has been applied to the master branch.
commit d170885f8c278c142c1cd0cd47ee97c3e236bc36
Author: Razvan Cojocaru
Date: Mon Nov 23 15:08:37 2026 +0100
socket_util: check the address family in addr_match() and addr_port_match()
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2327
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg41832.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel