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/client.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/client.c')
| -rw-r--r-- | src/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index ca6cf059..40e31014 100644 --- a/src/client.c +++ b/src/client.c @@ -526,7 +526,7 @@ int ssh_connect(ssh_session session) { } else { ret=ssh_socket_connect(session->socket, session->opts.host, - session->opts.port, + session->opts.port > 0 ? session->opts.port : 22, session->opts.bindaddr); } if (ret == SSH_ERROR) { |
