mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-12 15:41:16 +03:00
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: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
4fb6bccf22
commit
1c85acb6e6
@@ -356,7 +356,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;
|
||||
rc = ssh_send_kex(session, 1);
|
||||
rc = ssh_send_kex(session);
|
||||
if (rc < 0) {
|
||||
goto error;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ static void ssh_server_connection_callback(ssh_session session)
|
||||
goto error;
|
||||
}
|
||||
/* We are in a rekeying, so we need to send the server kex */
|
||||
rc = ssh_send_kex(session, 1);
|
||||
rc = ssh_send_kex(session);
|
||||
if (rc < 0) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user