]> err.no Git - varnish/commitdiff
Supposedly the fix for #324: An oversight in r3188
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 13:36:34 +0000 (13:36 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 13:36:34 +0000 (13:36 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3213 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index ba68ac765aa5ab23c5c96fb56475063a15ce7675..8fdec518dfc9aa2e5162b045ae50f3cdb64b0c53 100644 (file)
@@ -441,6 +441,8 @@ wrk_decimate_flock(struct wq *qp, double t_idle, struct varnish_stats *vs)
                w = VTAILQ_LAST(&qp->idle, workerhead);
                if (w != NULL && (w->lastused < t_idle || qp->nthr > nthr_max))
                        VTAILQ_REMOVE(&qp->idle, w, list);
+               else
+                       w = NULL;
        }
        UNLOCK(&qp->mtx);