]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix session id in env missing first byte
authorArne Schwabe <arne@rfc2549.org>
Thu, 26 Mar 2020 17:23:31 +0000 (18:23 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 11 May 2020 18:58:50 +0000 (20:58 +0200)
commit42fe3e8175822a4cf2c85cc4ce3fdffd41d74455
tree25c7c074549916e3be15b3a310b0fab9f5d0ea3a
parent27ad978fd6721f05f0c484a1bdbf775b0ab36ab2
Fix session id in env missing first byte

sizeof for a constant string return the size including the null byte.
For copying the session id this meant that we do not copy the first
byte. This made the session id reported to the external authenticator
one byte shorter than it was intended to be.

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200326172332.2356-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19622.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/auth_token.c