r851 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Sun Aug 20 17:11:53 CEST 2006
Author: phk
Date: 2006-08-20 17:11:53 +0200 (Sun, 20 Aug 2006)
New Revision: 851
Modified:
trunk/varnish-cache/bin/varnishd/mgt_cli.c
Log:
Make sure the returns have some value.
Modified: trunk/varnish-cache/bin/varnishd/mgt_cli.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_cli.c 2006-08-20 15:11:34 UTC (rev 850)
+++ trunk/varnish-cache/bin/varnishd/mgt_cli.c 2006-08-20 15:11:53 UTC (rev 851)
@@ -187,8 +187,15 @@
va_list ap;
unsigned u;
- if (cli_i < 0|| cli_o < 0)
+ if (resp != NULL)
+ *resp = NULL;
+ if (status != NULL)
+ *status = 0;
+ if (cli_i < 0|| cli_o < 0) {
+ if (status != NULL)
+ *status = CLIS_CANT;
return (CLIS_CANT);
+ }
va_start(ap, fmt);
i = vasprintf(&p, fmt, ap);
va_end(ap);
More information about the varnish-commit
mailing list