]> git.ipfire.org Git - thirdparty/openvpn.git/commit
win: calculate address string buffer size
authorHeiko Hund <heiko@ist.eigentlich.net>
Mon, 24 Mar 2025 08:33:44 +0000 (09:33 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 24 Mar 2025 09:16:47 +0000 (10:16 +0100)
commit8ea5debaea01da5fee56fbad56b50820c1beee92
tree1c3b4a37725ecbc5b6208e0cfe3ba7380dd8a585
parent15e663c898fe7a2350c35f5263cbad116cd5b61a
win: calculate address string buffer size

Instead of making the string buffer statically sized for a max. of
four addresses, calculate it to hold up to the max number of addresses
a dns_cfg_message_t can hold (currently four as well). Improves the code
so that it doesn't rely on the addresses never being more than four in
the future.

Change-Id: I23710b1f5b2122ec1f14465911836c0f0afa9c64
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20250324083350.4019-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31196.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c