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

Initialize req->req_step in Req_New()

parent 8907c7d8
......@@ -181,7 +181,7 @@ ved_include(struct req *preq, const char *src, const char *host,
req->vcl = preq->vcl;
VCL_Ref(req->vcl);
req->req_step = R_STP_TRANSPORT;
assert(req->req_step == R_STP_TRANSPORT);
req->t_req = preq->t_req;
req->transport = &VED_transport;
......
......@@ -152,6 +152,8 @@ Req_New(const struct worker *wrk, struct sess *sp)
req->t_prev = NAN;
req->t_req = NAN;
req->req_step = R_STP_TRANSPORT;
return (req);
}
......
......@@ -597,7 +597,7 @@ h2_end_headers(struct worker *wrk, struct h2_sess *h2,
}
AN(req->http->hd[HTTP_HDR_PROTO].b);
req->req_step = R_STP_TRANSPORT;
assert(req->req_step == R_STP_TRANSPORT);
req->task->func = h2_do_req;
req->task->priv = req;
r2->scheduled = 1;
......
......@@ -277,7 +277,7 @@ h2_ou_session(struct worker *wrk, struct h2_sess *h2,
/* Start req thread */
r2 = h2_new_req(wrk, h2, 1, req);
req->transport = &H2_transport;
req->req_step = R_STP_TRANSPORT;
assert(req->req_step == R_STP_TRANSPORT);
req->task->func = h2_do_req;
req->task->priv = req;
r2->scheduled = 1;
......
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