]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Allow trailing \r and \n in control channel message
authorArne Schwabe <arne@rfc2549.org>
Wed, 10 Jul 2024 14:06:23 +0000 (16:06 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 17 Jul 2024 18:55:21 +0000 (20:55 +0200)
commitbe31325e1dfdffbb152374985c2ae7b6644e3519
treea074e27f0a62b3831304affbd20dffe4171e3e8e
parentf8f477139804b06183b515a529c982f524547d18
Allow trailing \r and \n in control channel message

Writing a reason from a script will easily end up adding extra \r\n characters
at the end of the reason. Our current code pushes this to the peer. So be more
liberal in accepting these message.

Github: closes OpenVPN/openvpn#568

Change-Id: I47c992b6b73b1475cbff8a28f720cf50dc1fbe3e
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240710140623.172829-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28910.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/forward.c
src/openvpn/ssl_pkt.c
src/openvpn/ssl_pkt.h
tests/unit_tests/openvpn/test_pkt.c