Well spotted... I'm not sure how realistic that error branch is
(GetAdaptersAddress() tells us on the first round how big the buffer
should be, so hopefully that is sufficient on the next call... - but
of course there might be a race with a new adapter created in between),
but still, if we already know we haven't succeeded we shouldn't keep
using that pointer :-)
It's a bug, so the patch goes to 2.7. Compile-tested with mingw
(testing via GHA is integer-broken right now, sorry for that).
Your patch has been applied to the master and release/2.7 branch.
commit 189fc28e7c86cc4620746b1e95bad5119fb3cb55
commit 810b87a28ad9467188386c81eb61c52f54b51bcd (release/2.7)
Author: Razvan Cojocaru
Date: Fri Nov 27 19:12:50 2026 +0100
openvpnmsica: don't reuse the freed adapter address list
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2361
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg42095.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