Commit 5691cc0d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't borrow the parent VCL in esi-includes, vcl switching

would give subsequent esi-includes the wrong vcl.
parent d46391fa
......@@ -163,7 +163,7 @@ ved_include(struct req *preq, const char *src, const char *host,
AZ(req->vcl);
req->vcl = preq->vcl;
preq->vcl = NULL;
VCL_Ref(req->vcl);
req->req_step = R_STP_RECV;
req->t_req = preq->t_req;
......@@ -197,9 +197,7 @@ ved_include(struct req *preq, const char *src, const char *host,
AZ(req->wrk);
}
AZ(preq->vcl);
preq->vcl = req->vcl;
req->vcl = NULL;
VCL_Rel(&req->vcl);
req->wrk = NULL;
THR_SetRequest(preq);
......
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