From: "selvanair (Code Review)" Date: Mon, 16 Feb 2026 19:32:32 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <081478d14ce87fa7bc5e64922881c3bce69e0226-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Eb0PG/wsPkE="; 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 , flichtenheld Cc: openvpn-devel --Eb0PG/wsPkE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, selvanair. Hello flichtenheld, 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 (#3). The following approvals got outdated and were removed: Code-Review-1 by flichtenheld 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/3 diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c index 37ae6b3..f0408d8 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", man-= >connection.client_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: 3 Gerrit-Owner: selvanair Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: selvanair --Eb0PG/wsPkE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos, selvanair.

selvanair uploaded patch set #3 to this change.

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

The following approvals got outdated and were removed: Code-Review-1 by flichtenheld

Fixup version command on man=
agement interface

All commands to the management interface are suppo= sed to be
responded with either a one-line "SUCCESS:/ERROR:" m= essage
or a multi-line reply terminated by "END". But, curentl= y we
silently accept the "version n" command wih no response. = This
causes clients like OpenVPN-GUI lock-up if version command is
us= ed, waiting for ever for a reply.

Fix this by adding a SUCCESS/ERROR= response.

Change-Id: I76dc80a9d9b29e401b7bbd59e0c46baf751d2e4a
S= igned-off-by: Selva Nair <selva.nair@...277...>
---
M src/openv= pn/manage.c
1 file changed, 5 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes=
/28/1528/3
diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c=

index 37ae6b3..f0408d8 100644
--- a/src/op= envpn/manage.c
+++ b/src/openvpn/manage.c
@= @ -1333,6 +1333,11 @@
if (version)
= {
man->connection.client_version =3D atoi(ver= sion);
+ msg(M= _CLIENT, "SUCCESS: Management client version set to %d", man->= connection.client_version);
+ }
+ el= se
+ {
<= span style=3D"color: hsl(120, 100%, 40%);">+ msg(M_CLIENT, "ERR= OR: Invalid value specified for management client version"); }
}

<= br>

To view, visit change 1528. To unsubscribe, or for help writing mai= l filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I76dc80a9d9b29e401b7bbd59e0c= 46baf751d2e4a
Gerrit-Change-Number: 1528
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: selvanair <selva.nair@...493...= 277...>
= --Eb0PG/wsPkE=--