Commit 735523ef authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fail if backend workspace doesn't have room for htc

parent d573f35f
......@@ -129,9 +129,11 @@ vbe_dir_getfd(const struct director *d, struct busyobj *bo)
vc->fd, bp->display_name, abuf2, pbuf2, abuf1, pbuf1);
vc->backend->vsc->req++;
AZ(bo->htc);
bo->htc = WS_Alloc(bo->ws, sizeof *bo->htc);
if (bo->htc == NULL)
bo->htc = WS_Alloc(bo->ws, sizeof *bo->htc);
AN(bo->htc);
/* XXX: counter ? */
return (-1);
INIT_OBJ(bo->htc, HTTP_CONN_MAGIC);
bo->htc->vbc = vc;
bo->htc->fd = vc->fd;
......
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