From: phk Date: Sat, 5 Aug 2006 15:38:51 +0000 (+0000) Subject: Bail if the cli pipe is not ready X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173d4656b686bd1ec40591d518e2a12059784340;p=varnish Bail if the cli pipe is not ready git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@673 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_cli.c b/varnish-cache/bin/varnishd/mgt_cli.c index 908511a9..2729fffa 100644 --- a/varnish-cache/bin/varnishd/mgt_cli.c +++ b/varnish-cache/bin/varnishd/mgt_cli.c @@ -178,6 +178,8 @@ mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...) 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);