mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +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
|
|
@ -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>
|
2002-05-15 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||||
|
|
||||||
* 17166: Src/Modules/zftp.c: must check fileno of zftp control
|
* 17166: Src/Modules/zftp.c: must check fileno of zftp control
|
||||||
|
|
|
||||||
|
|
@ -636,6 +636,8 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
|
||||||
if (err) {
|
if (err) {
|
||||||
zwarnnam(nam, "connection failed: %e", NULL, errno);
|
zwarnnam(nam, "connection failed: %e", NULL, errno);
|
||||||
tcp_close(sess);
|
tcp_close(sess);
|
||||||
|
zsfree(desthost);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue