mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
17171: Src/Modules/tcp.c: ztcp didn't return failure
when a connect() failed.
This commit is contained in:
parent
bbefa484f4
commit
dbe104ca8c
2 changed files with 7 additions and 0 deletions
|
|
@ -636,6 +636,8 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
|
|||
if (err) {
|
||||
zwarnnam(nam, "connection failed: %e", NULL, errno);
|
||||
tcp_close(sess);
|
||||
zsfree(desthost);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue