From: Gert Doering Date: Wed, 26 Nov 2025 11:49:32 +0100 Message-ID: <20251126104938.5612-1-gert@...1296...> In-Reply-To: References: MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH v3] iservice: fix off by one error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net From: Heiko Hund In case there is more than one non-ignored interface domain, the start of the next domain was off by one glyph. That meant that all but the first domain was ignored when converting to MULTI_SZ. Reported-by: Marc Heuse Reported-by: stephan@...2953... Change-Id: I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca Signed-off-by: Heiko Hund Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395 This mail reflects revision 3 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index 31a7ffa..23d18aa 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -2234,7 +2234,8 @@ return NO_ERROR; } - pos = comma + 1; + /* Comma pos is now +1 after adding leading dot */ + pos = comma + 2; } } }