1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00: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

@ -1,3 +1,8 @@
2002-05-16 Peter Stephenson <pws@csr.com>
* 17171: Src/Modules/tcp.c: ztcp didn't return status 1 when a
connect() failed.
2002-05-15 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 17166: Src/Modules/zftp.c: must check fileno of zftp control

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
{