diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/tcp.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 100466c0e..06293ce6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 78ce386db..33b7a613a 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -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 { |