r848 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Aug 20 16:53:12 CEST 2006


Author: phk
Date: 2006-08-20 16:53:12 +0200 (Sun, 20 Aug 2006)
New Revision: 848

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Fix malloc bug.


Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2006-08-20 13:39:24 UTC (rev 847)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2006-08-20 14:53:12 UTC (rev 848)
@@ -181,9 +181,10 @@
 		    "config.load %s %s\n", vp->name, vp->fname))
 			return (1);
 		free(*p);
-		if (vp->active &&
-		    mgt_cli_askchild(status, p,
-		    "config.use %s\n", vp->name, vp->fname))
+		if (!vp->active)
+			continue;
+		if (mgt_cli_askchild(status, p, "config.use %s\n",
+		    vp->name, vp->fname))
 			return (1);
 		free(*p);
 	}




More information about the varnish-commit mailing list