]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix port-share option with TLS-Crypt v2
authorArne Schwabe <arne@rfc2549.org>
Mon, 30 Nov 2020 12:38:13 +0000 (13:38 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 4 Dec 2020 11:20:32 +0000 (12:20 +0100)
commitc27f97dc0ac99344659cca57bd048543a9899266
tree9b0db2d20da849df88f323b7e86d709553e6430d
parentbac760f84b39bf8f6b97778a15e5fcf863f6d366
Fix port-share option with TLS-Crypt v2

The port-share option assumed that all openvpn initial reset packets
are between 14 and 255 bytes long. This is not true for tls-crypt-v2.

Patch V2: use correct length for TLS-Crypt v2, use length variable
          non-tlscryptv2 test

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Steffan Karger <steffan.karger@foxcrypto.com>
Message-Id: <20201130123813.21388-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21290.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 1387f52682dcd3789c56c9979ccedca281ff88f4)
src/openvpn/ps.c