]> git.feebdaed.xyz Git - 0xmirror/openvpn.git/commit
iservice: return correct size when domains are truncated
authorHeiko Hund <heiko@ist.eigentlich.net>
Wed, 26 Nov 2025 10:43:07 +0000 (11:43 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 26 Nov 2025 11:02:42 +0000 (12:02 +0100)
commitaeda359efaeae3d2d77f7a89223fa1b5bcac2c90
treec34b75f4b7bb6069545d8910ad72b4503fda87c2
parentac6c9d65701ed6d41691497846a47cb4e72b2878
iservice: return correct size when domains are truncated

In case not all domains can be converted in the available buffer, return
the size of the already converted domains size plus the second terminating
zero for the MULTI_SZ.

Reported-by: Marc Heuse <marc@srlabs.de>
Reported-by: stephan@srlabs.de
Change-Id: Iabad046c930dd0f38ec50d1c43d8b3288816df7d
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1391
Message-Id: <20251126104315.4776-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34680.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c