Commit f671a30a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure to clean the VBE properly before releasing it.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3768 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 06bd22ca
......@@ -112,8 +112,11 @@ VBE_DropRefLocked(struct backend *b)
ASSERT_CLI();
VTAILQ_FOREACH_SAFE(vbe, &b->connlist, list, vbe2) {
VTAILQ_REMOVE(&b->connlist, vbe, list);
if (vbe->fd >= 0)
if (vbe->fd >= 0) {
AZ(close(vbe->fd));
vbe->fd = -1;
}
vbe->backend = NULL;
VBE_ReleaseConn(vbe);
}
if (b->probe != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment