mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Log when writing username/password to TLS buffer fails
Currently we get an unhelpful "Key Method #2 failed" error.
Add a more specific warning message.
Change-Id: I9468811fd434e17645957fc12770aa2b9ed98fb8
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1600
Message-Id: <20260414055721.16857-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36604.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit fd1fd077ea)
This commit is contained in:
parent
a4936d3163
commit
784ba7a201
1 changed files with 2 additions and 0 deletions
|
|
@ -2125,10 +2125,12 @@ key_method_2_write(struct buffer *buf, struct tls_multi *multi, struct tls_sessi
|
|||
|
||||
if (!write_string(buf, up->username, -1))
|
||||
{
|
||||
msg(M_WARN, "WARNING: Failed to write auth username to TLS buffer");
|
||||
goto error;
|
||||
}
|
||||
else if (!write_string(buf, up->password, -1))
|
||||
{
|
||||
msg(M_WARN, "WARNING: Failed to write auth password to TLS buffer");
|
||||
goto error;
|
||||
}
|
||||
/* save username for auth-token which may get pushed later */
|
||||
|
|
|
|||
Loading…
Reference in a new issue