aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-19 19:35:55 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-19 19:35:55 +0200
commit041aff8060ace97ddab83037acdd228727ab9220 (patch)
tree505b0866310074a81e5a94d158a30992f8b6cfe4
parent7c7096d8f875e9235eab738cb79c71c882615121 (diff)
downloadlibssh-041aff8060ace97ddab83037acdd228727ab9220.tar.gz
libssh-041aff8060ace97ddab83037acdd228727ab9220.tar.xz
libssh-041aff8060ace97ddab83037acdd228727ab9220.zip
Fix binding found by Bernhard R. Link
-rw-r--r--libssh/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/connect.c b/libssh/connect.c
index d8898ef6..ca08b884 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -289,7 +289,7 @@ socket_t ssh_connect_host(SSH_SESSION *session, const char *host,
ssh_log(session, SSH_LOG_PACKET, "Resolving %s\n", bind_addr);
- rc = getai(session,host, 0, &bind_ai);
+ rc = getai(session,bind_addr, 0, &bind_ai);
if (rc != 0) {
ssh_set_error(session, SSH_FATAL,
"Failed to resolve bind address %s (%s)",