]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Allow trailing \r and \n in control channel message
authorArne Schwabe <arne@rfc2549.org>
Thu, 11 Jul 2024 11:30:22 +0000 (13:30 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 17 Jul 2024 19:11:35 +0000 (21:11 +0200)
commitdddb87f126a6e87e61de830a9efe0bc257a71e2b
tree1a15726553c47dcc7005f934254f2e355169e965
parentd4921ba22f5ae4537d808986743a228617c86328
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

This is the backport of the fix (commit be31325e1dfdffb) to release/2.5.

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