]> git.ipfire.org Git - thirdparty/openvpn.git/commit
win: fix collecting DNS exclude data
authorHeiko Hund <heiko@ist.eigentlich.net>
Tue, 20 May 2025 08:55:06 +0000 (10:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 20 May 2025 12:08:36 +0000 (14:08 +0200)
commit21c8f820d15e7891b042d33cdd989316ed987dab
tree9b5c75c86b58bbf316d708690345385d346f7cea
parentdcc2385c033ac5df98968aad6899ddc8c4d2240e
win: fix collecting DNS exclude data

The size of the returned MULTI_SZ wide domains string was calculated
wrongly. Instead of adding the size of a WCHAR, only the size of a char
was used. As a result, the domains string was stored too short and was
missing the final string terminator.

DHCP assigned DNS server addresses are separated by space, not comma.
These spaces were not replaced by semicolon, as the spec requires.

Github: fixes OpenVPN/openvpn#747
Change-Id: Ie3fcd845344fd0c3ce9a2f99612fb19fe5ebb2f1
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20250520085513.28213-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31727.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c