mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
misc: Differentiate between client and server in ssh_analyze_banner.
This commit is contained in:
@@ -492,7 +492,7 @@ static void ssh_client_connection_callback(ssh_session session){
|
||||
"SSH server banner: %s", session->serverbanner);
|
||||
|
||||
/* Here we analyze the different protocols the server allows. */
|
||||
if (ssh_analyze_banner(session, &ssh1, &ssh2) < 0) {
|
||||
if (ssh_analyze_banner(session, 0, &ssh1, &ssh2) < 0) {
|
||||
goto error;
|
||||
}
|
||||
/* Here we decide which version of the protocol to use. */
|
||||
|
||||
Reference in New Issue
Block a user