mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-05 01:02:39 +03:00
gssapi: Free mic_token_buffer on before return (GHSL-2023-038)
Thanks Phil Turnbull from GitHub Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
5928d7962e
commit
23ff6f9388
@@ -958,6 +958,9 @@ static int ssh_gssapi_send_mic(ssh_session session)
|
||||
SSH2_MSG_USERAUTH_GSSAPI_MIC,
|
||||
mic_token_buf.length,
|
||||
(size_t)mic_token_buf.length, mic_token_buf.value);
|
||||
|
||||
gss_release_buffer(&min_stat, &mic_token_buf);
|
||||
|
||||
if (rc != SSH_OK) {
|
||||
SSH_BUFFER_FREE(mic_buffer);
|
||||
ssh_set_error_oom(session);
|
||||
|
||||
Reference in New Issue
Block a user