aboutsummaryrefslogtreecommitdiff
path: root/src/connect.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-18 17:06:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-18 17:06:58 +0200
commit1deb3412bb1943d1fc416b245bed6ffd01727402 (patch)
treeb2c724cfa9af534b6eb947d540fb4d1669ce7243 /src/connect.c
parentaaae3c4ec15226c7f64f27b3453376f24d263fed (diff)
downloadlibssh-1deb3412bb1943d1fc416b245bed6ffd01727402.tar.gz
libssh-1deb3412bb1943d1fc416b245bed6ffd01727402.tar.xz
libssh-1deb3412bb1943d1fc416b245bed6ffd01727402.zip
connect: Use the correct close function.
Diffstat (limited to 'src/connect.c')
-rw-r--r--src/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connect.c b/src/connect.c
index 8e0d206d..91e6b6a7 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -358,7 +358,7 @@ socket_t ssh_connect_host_nonblocking(ssh_session session, const char *host,
"Failed to resolve bind address %s (%s)",
bind_addr,
gai_strerror(rc));
- close(s);
+ ssh_connect_socket_close(s);
s=-1;
break;
}