Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Today's TCP Fix (TM)

failed to return status 1 if the connect() failed.

Index: Src/Modules/tcp.c
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.c,v
retrieving revision 1.27
diff -u -r1.27 tcp.c
--- Src/Modules/tcp.c	14 May 2002 17:52:56 -0000	1.27
+++ Src/Modules/tcp.c	16 May 2002 13:47:55 -0000
@@ -636,6 +636,8 @@
 	if (err) {
 	    zwarnnam(nam, "connection failed: %e", NULL, errno);
+	    zsfree(desthost);
+	    return 1;

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author