| Message ID | 20251103115552.6201-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers | show |
| Series | [Openvpn-devel,v1] manage: Correctly handle port 65535 in man_kill | expand |
Trivial fix - and we should have fixed that on the original patch, but
due to time constraints around 2.7_rc1 release it did not work out.
Your patch has been applied to the master branch.
commit 40b29347c05e969dc2d23223a426ce652b123589
Author: Frank Lichtenheld
Date: Mon Nov 3 12:55:46 2025 +0100
manage: Correctly handle port 65535 in man_kill
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1341
Message-Id: <20251103115552.6201-1-gert@greenie.muc.de>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
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 != PROTO_NONE)) + if ((port > 0 && port <= UINT16_MAX) && (proto != PROTO_NONE)) { n_killed = (*man->persist.callback.kill_by_addr)(man->persist.callback.arg, addr, (uint16_t)port, proto);