1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +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

@@ -435,7 +435,7 @@ static void ssh_server_connection_callback(ssh_session session){
"SSH client banner: %s", session->clientbanner);
/* Here we analyze the different protocols the server allows. */
if (ssh_analyze_banner(session, &ssh1, &ssh2) < 0) {
if (ssh_analyze_banner(session, 1, &ssh1, &ssh2) < 0) {
goto error;
}
/* Here we decide which version of the protocol to use. */