From: "cron2 (Code Review)" Date: Mon, 3 Nov 2025 13:14:19 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <11033e85c1f007535c9124e0b7fafaa12c1a80b4-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="u+cWyCnU938="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: manage: Correctly handle port 65535 in man_kill List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --u+cWyCnU938= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1341?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: manage: Correctly handle port 65535 in man_kill ...................................................................... manage: Correctly handle port 65535 in man_kill Commit c66d433111c958c42cc98f4ba12d3cfc1bd5b3b4 introduced an off-by-one when changing a literal to a constant. Github: fixes OpenVPN/openvpn#887 Change-Id: I19373408a82332d7b2e5c634e5509c8be3727b5a Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1341 Message-Id: <20251103115552.6201-1-gert@...1296...> Signed-off-by: Gert Doering --- M src/openvpn/manage.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/41/1341/2 diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c index e46b5f2..6efa100 100644 --- a/src/openvpn/manage.c +++ b/src/openvpn/manage.c @@ -612,7 +612,7 @@ : (streq(p1, "udp")) ? PROTO_UDP : PROTO_NONE; - if ((port > 0 && port < UINT16_MAX) && (proto !=3D PROTO_N= ONE)) + if ((port > 0 && port <=3D UINT16_MAX) && (proto !=3D PROT= O_NONE)) { n_killed =3D (*man->persist.callback.kill_by_addr)(man= ->persist.callback.arg, addr,= (uint16_t)port, proto); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1341?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: I19373408a82332d7b2e5c634e5509c8be3727b5a Gerrit-Change-Number: 1341 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --u+cWyCnU938= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2

manage: Correctly handle port 65535=
 in man_kill

Commit c66d433111c958c42cc98f4ba12d3cfc1bd5b3b4 introdu= ced
an off-by-one when changing a literal to a constant.

Github: = fixes OpenVPN/openvpn#887
Change-Id: I19373408a82332d7b2e5c634e5509c8be3= 727b5a
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acke= d-by: Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit.op= envpn.net/c/openvpn/+/1341
Message-Id: <20251103115552.6201-1-gert@...1186...= .1296...>
Signed-off-by: Gert Doering <gert@...1296...>
---<= br>M src/openvpn/manage.c
1 file changed, 1 insertion(+), 1 deletion(-)<= br>
git pull ssh://gerrit.openvpn.net:29418/openvpn =
refs/changes/41/1341/2
diff --git a/src/openvpn/manage.c b/src/open=
vpn/manage.c
index e46b5f2..6efa100 100644
= --- a/src/openvpn/manage.c
+++ b/src/openvpn/manage.c
@@ -612,7 +612,7 @@
= : (streq(p1, "udp")) ? PROTO_UDP
= : PROTO_NONE;=

- = if ((port > 0 && port < UINT16_MAX) && (proto != =3D PROTO_NONE))
+ = if ((port > 0 && port <=3D UINT16_MAX) &&= ; (proto !=3D PROTO_NONE))
{
n_killed =3D (*man->persist.callback.kill_by_add= r)(man->persist.callback.arg,

= addr, (uint16_t)port, proto);

To view, visit change 1341. To unsubscribe, = or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I19373408a82332d7b2e5c634e55= 09c8be3727b5a
Gerrit-Change-Number: 1341
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --u+cWyCnU938=--