Commit 5b212a2c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Postpone VDP_Init() until we need it. Zero in the meantime.

parent 9d32fa37
......@@ -131,7 +131,7 @@ Req_New(const struct worker *wrk, struct sess *sp)
p = (void*)PRNDUP(p + sizeof(*req->htc));
req->vdc = (void*)p;
VDP_Init(req->vdc);
memset(req->vdc, 0, sizeof *req->vdc);
p = (void*)PRNDUP(p + sizeof(*req->vdc));
req->htc = (void*)p;
......
......@@ -425,6 +425,7 @@ cnt_transmit(struct worker *wrk, struct req *req)
sendbody = 1;
}
VDP_Init(req->vdc);
if (req->filter_list == NULL)
req->filter_list = resp_Get_Filter_List(req);
if (req->filter_list == 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