mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 03:52:28 +02:00
Add missing free_key_ctx for auth_token
This is is a small memory leak as this key is only leaked once per server start. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Antonio Quartulli <antonio@openvpn.net> Message-Id: <20210512131511.1309914-5-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22345.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
8de7e643ba
commit
fe39156a38
@ -2520,6 +2520,7 @@ key_schedule_free(struct key_schedule *ks, bool free_ssl_ctx)
|
||||
if (tls_ctx_initialised(&ks->ssl_ctx) && free_ssl_ctx)
|
||||
{
|
||||
tls_ctx_free(&ks->ssl_ctx);
|
||||
free_key_ctx(&ks->auth_token_key);
|
||||
}
|
||||
CLEAR(*ks);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user