From: "selvanair (Code Review)" Date: Mon, 16 Feb 2026 01:30:47 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="lBK79JAu03E="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fixup version command on management interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --lBK79JAu03E= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1528?usp=3Demail to look at the new patch set (#2). Change subject: Fixup version command on management interface ...................................................................... Fixup version command on management interface All commands to the management interface are supposed to be responded with either a one-line "SUCCESS:/ERROR:" message or a multi-line reply terminated by "END". But, curently we silently accept the "version n" command wih no response. This causes clients like OpenVPN-GUI lock-up if version command is used, waiting for ever for a reply. Fix this by adding a SUCCESS/ERROR response. Change-Id: I76dc80a9d9b29e401b7bbd59e0c46baf751d2e4a Signed-off-by: Selva Nair --- M src/openvpn/manage.c 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/28/1528/2 diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c index 37ae6b3..42cb37f 100644 --- a/src/openvpn/manage.c +++ b/src/openvpn/manage.c @@ -1333,6 +1333,11 @@ if (version) { man->connection.client_version =3D atoi(version); + msg(M_CLIENT, "SUCCESS: Management client version set to %d", atoi= (version)); + } + else + { + msg(M_CLIENT, "ERROR: Invalid value specified for management clien= t version"); } } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1528?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I76dc80a9d9b29e401b7bbd59e0c46baf751d2e4a Gerrit-Change-Number: 1528 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --lBK79JAu03E= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

selvanair uploaded patch set #2 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1528?usp=3Demail">View Chan= ge

Fixup version command on management interface
All commands to the management interface are supposed to be
responded = with either a one-line "SUCCESS:/ERROR:" message
or a multi-li= ne reply terminated by "END". But, curently we
silently accept= the "version n" command wih no response. This
causes clients = like OpenVPN-GUI lock-up if version command is
used, waiting for ever fo= r a reply.

Fix this by adding a SUCCESS/ERROR response.

Chang= e-Id: I76dc80a9d9b29e401b7bbd59e0c46baf751d2e4a
Signed-off-by: Selva Nai= r <selva.nair@...277...>
---
M src/openvpn/manage.c
1 file c= hanged, 5 insertions(+), 0 deletions(-)

git pull=
 ssh://gerrit.openvpn.net:29418/openvpn refs/changes/28/1528/2
diff=
 --git a/src/openvpn/manage.c b/src/openvpn/manage.c
index = 37ae6b3..42cb37f 100644
--- a/src/openvpn/manage.c+++ b/src/openvpn/manage.c
@@ -1333,6 +1333,11 @@
if (version)
{
= man->connection.client_version =3D atoi(version);
+ msg(M_CLIENT, "SUCCESS:= Management client version set to %d", atoi(version));
+ }

+ else
+ {
= + msg(M_CLIENT, "ERROR: Invalid value specified for management = client version");
}
}
=

To view, visit change 1528. To unsu= bscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I76dc80a9d9b29e401b7bbd59e0c= 46baf751d2e4a
Gerrit-Change-Number: 1528
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --lBK79JAu03E=--