r673 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sat Aug 5 17:38:51 CEST 2006


Author: phk
Date: 2006-08-05 17:38:51 +0200 (Sat, 05 Aug 2006)
New Revision: 673

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_cli.c
Log:
Bail if the cli pipe is not ready


Modified: trunk/varnish-cache/bin/varnishd/mgt_cli.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_cli.c	2006-08-05 15:38:27 UTC (rev 672)
+++ trunk/varnish-cache/bin/varnishd/mgt_cli.c	2006-08-05 15:38:51 UTC (rev 673)
@@ -178,6 +178,8 @@
 	va_list ap;
 	unsigned u;
 
+	if (cli_i < 0|| cli_o < 0)
+		return (CLIS_CANT);
 	va_start(ap, fmt);
 	i = vasprintf(&p, fmt, ap);
 	va_end(ap);




More information about the varnish-commit mailing list