summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-29 12:11:43 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-29 12:11:43 +0200
commit1b471256d4371f4789da6fa345ead4015623abbe (patch)
tree0c30c95f95c0f71073ee65925aa41a2877d43cfd /src/client.c
parent30e22fed6e6bdab222977a2e385defed1f2d0d62 (diff)
downloadlibssh-1b471256d4371f4789da6fa345ead4015623abbe.tar.gz
libssh-1b471256d4371f4789da6fa345ead4015623abbe.tar.xz
libssh-1b471256d4371f4789da6fa345ead4015623abbe.zip
misc: Differentiate between client and server in ssh_analyze_banner.
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index f6be34f..f456e0d 100644
--- a/src/client.c
+++ b/src/client.c
@@ -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. */