1
0
Fork 0
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:
Peter Stephenson 2002-05-16 14:05:27 +00:00
parent bbefa484f4
commit dbe104ca8c
2 changed files with 7 additions and 0 deletions

View file

@ -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
{