diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-10-28 10:33:20 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-12-25 12:32:16 +0100 |
commit | bb18442fe8f58a483713eb2b988b3da9869ddf86 (patch) | |
tree | 1469c0d6289a313d73907ab95c5985e838c9a23b /src/config.c | |
parent | c2aed4ca78030d9014a890cb4370e6dc8264823f (diff) | |
download | libssh-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/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 0d869613..0d44c215 100644 --- a/src/config.c +++ b/src/config.c @@ -245,7 +245,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } break; case SOC_PORT: - if (session->opts.port == 22) { + if (session->opts.port == 0) { p = ssh_config_get_str_tok(&s, NULL); if (p && *parsing) { ssh_options_set(session, SSH_OPTIONS_PORT_STR, p); |