mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
connect: Use the correct close function.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user