CVE-2023-1667:kex: Remove needless function argument

The information if the session is client or server session is already part of
the session structure so this argument only duplicated information.

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:
Jakub Jelen
2023-03-13 15:11:25 +01:00
committed by Andreas Schneider
parent 6887a5bb20
commit abcf9699aa
4 changed files with 8 additions and 8 deletions

View File

@@ -368,7 +368,7 @@ static void ssh_server_connection_callback(ssh_session session)
ssh_packet_set_default_callbacks(session);
set_status(session, 0.5f);
session->session_state = SSH_SESSION_STATE_INITIAL_KEX;
if (ssh_send_kex(session, 1) < 0) {
if (ssh_send_kex(session) < 0) {
goto error;
}
break;
@@ -381,7 +381,7 @@ static void ssh_server_connection_callback(ssh_session session)
if (server_set_kex(session) == SSH_ERROR)
goto error;
/* We are in a rekeying, so we need to send the server kex */
if (ssh_send_kex(session, 1) < 0)
if (ssh_send_kex(session) < 0)
goto error;
}
ssh_list_kex(&session->next_crypto->client_kex); // log client kex