mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-10 17:33:17 -04:00
auth_token.c: add NULL initialization
This fixes error C4703: potentially uninitialized local pointer variable 'b64output' used found by arm64 msvc compiler with SDL enabled. Not sure why this is not triggered on x86/x64. Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Antonio Quartulli <antonio@openvpn.net> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <20220107123550.188-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23511.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
c2c8128ad5
commit
4b6073b825
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ generate_auth_token(const struct user_pass *up, struct tls_multi *multi)
|
|||
ASSERT(buf_write(&token, ×tamp, sizeof(timestamp)));
|
||||
ASSERT(buf_write(&token, hmac_output, sizeof(hmac_output)));
|
||||
|
||||
char *b64output;
|
||||
char *b64output = NULL;
|
||||
openvpn_base64_encode(BPTR(&token), BLEN(&token), &b64output);
|
||||
|
||||
struct buffer session_token = alloc_buf_gc(
|
||||
|
|
|
|||
Loading…
Reference in a new issue