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:35:21 +0100 |
| commit | a45dd8e00037125d0789fe6d4a8ab1557a02e5ac (patch) | |
| tree | 8ad02cced31368d61e0d1bffe3c3d74418f75f88 /src/config.c | |
| parent | 319129399d3191e9ddd04bef05d2c707ecaa9455 (diff) | |
options: Fix setting the port.
Make sure we correctly read the port from the config file.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit bb18442fe8f58a483713eb2b988b3da9869ddf86)
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 f21a71a1..6a7f1eeb 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); |
