Looks reasonable, does the same thing with less lines of code, adjusted to multisocket. Test compiled on ubuntu/mingw.
Your patch has been applied to the master branch. commit 1452625bc364cb5847daedaad238c7a5eb3eff5e Author: Lev Stipakov Date: Tue Dec 31 15:54:17 2024 +0100 dco-win: simplify do_close_link_socket() Signed-off-by: Lev Stipakov <l...@openvpn.net> Acked-by: Gert Doering <g...@greenie.muc.de> Message-Id: <20241231145417.12128-1-g...@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30328.html Signed-off-by: Gert Doering <g...@greenie.muc.de> -- kind regards, Gert Doering _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel