aboutsummaryrefslogtreecommitdiff
path: root/libssh/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/options.c')
-rw-r--r--libssh/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/options.c b/libssh/options.c
index 1de36256..bde7f5e4 100644
--- a/libssh/options.c
+++ b/libssh/options.c
@@ -368,6 +368,7 @@ int ssh_options_getopt(SSH_OPTIONS *options, int *argcptr, char **argv){
if(cont && localaddr)
ssh_options_set_bind(options,localaddr,0);
ssh_options_set_port(options,port);
+ options->bindport=port;
if(ssh1){
ssh_options_allow_ssh1(options,1);
ssh_options_allow_ssh2(options,0);