1
0
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:
Andreas Schneider
2010-09-29 12:11:43 +02:00
parent 30e22fed6e
commit 1b471256d4
4 changed files with 11 additions and 5 deletions

View File

@@ -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. */