diff options
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/options.c b/libssh/options.c index a536d4f0..3db4390a 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -108,8 +108,8 @@ SSH_OPTIONS *ssh_options_copy(SSH_OPTIONS *opt) { } } if (opt->bindaddr) { - new->host = strdup(opt->bindaddr); - if (new->host == NULL) { + new->bindaddr = strdup(opt->bindaddr); + if (new->bindaddr == NULL) { goto err; } } |