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)",
|
"Failed to resolve bind address %s (%s)",
|
||||||
bind_addr,
|
bind_addr,
|
||||||
gai_strerror(rc));
|
gai_strerror(rc));
|
||||||
close(s);
|
ssh_connect_socket_close(s);
|
||||||
s=-1;
|
s=-1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user