mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
fix copy&paste error
Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
committed by
Andreas Schneider
parent
8b21b51a78
commit
9afad28255
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user