aboutsummaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-10-28 10:33:20 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-12-25 12:32:16 +0100
commitbb18442fe8f58a483713eb2b988b3da9869ddf86 (patch)
tree1469c0d6289a313d73907ab95c5985e838c9a23b /src/session.c
parentc2aed4ca78030d9014a890cb4370e6dc8264823f (diff)
downloadlibssh-bb18442fe8f58a483713eb2b988b3da9869ddf86.tar.gz
libssh-bb18442fe8f58a483713eb2b988b3da9869ddf86.tar.xz
libssh-bb18442fe8f58a483713eb2b988b3da9869ddf86.zip
options: Fix setting the port.
Make sure we correctly read the port from the config file. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 90206d42..63364c51 100644
--- a/src/session.c
+++ b/src/session.c
@@ -100,7 +100,7 @@ ssh_session ssh_new(void) {
/* OPTIONS */
session->opts.StrictHostKeyChecking = 1;
- session->opts.port = 22;
+ session->opts.port = 0;
session->opts.fd = -1;
session->opts.ssh2 = 1;
session->opts.compressionlevel=7;