mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09: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: Norbert Pocs <npocs@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
@@ -944,6 +944,9 @@ static int ssh_gssapi_send_mic(ssh_session session){
|
|||||||
SSH2_MSG_USERAUTH_GSSAPI_MIC,
|
SSH2_MSG_USERAUTH_GSSAPI_MIC,
|
||||||
mic_token_buf.length,
|
mic_token_buf.length,
|
||||||
(size_t)mic_token_buf.length, mic_token_buf.value);
|
(size_t)mic_token_buf.length, mic_token_buf.value);
|
||||||
|
|
||||||
|
gss_release_buffer(&min_stat, &mic_token_buf);
|
||||||
|
|
||||||
if (rc != SSH_OK) {
|
if (rc != SSH_OK) {
|
||||||
SSH_BUFFER_FREE(mic_buffer);
|
SSH_BUFFER_FREE(mic_buffer);
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
|
|||||||
Reference in New Issue
Block a user