aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2009-09-21 20:10:38 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-22 14:04:42 +0200
commit9afad282552ce9bfb49ea4dee37cd79d50892e04 (patch)
tree5a3641dafe2fa2d4ebaeffca2bf2c08026551bb3 /libssh
parent8b21b51a78e07a9fb0c2ea90292c5b166e44269c (diff)
downloadlibssh-9afad282552ce9bfb49ea4dee37cd79d50892e04.tar.gz
libssh-9afad282552ce9bfb49ea4dee37cd79d50892e04.tar.xz
libssh-9afad282552ce9bfb49ea4dee37cd79d50892e04.zip
fix copy&paste error
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh')
-rw-r--r--libssh/options.c4
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;
}
}