From 9afad282552ce9bfb49ea4dee37cd79d50892e04 Mon Sep 17 00:00:00 2001 From: "Bernhard R. Link" Date: Mon, 21 Sep 2009 20:10:38 +0200 Subject: fix copy&paste error Signed-off-by: Andreas Schneider --- libssh/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh/options.c') diff --git a/libssh/options.c b/libssh/options.c index a536d4f..3db4390 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; } } -- cgit