Commit 2d4c2a50 authored by Nils Goroll's avatar Nils Goroll

turn return(vcl(...)) ito a noop for req.restarts > 0

As the FSM will fail for this case, we should not run the code in the
first place.
parent 2eb352d2
......@@ -93,7 +93,7 @@ VPI_vcl_select(VRT_CTX, VCL_VCL vcl)
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
CHECK_OBJ_NOTNULL(req->top, REQTOP_MAGIC);
if (IS_TOPREQ(req) && req->top->vcl0 != NULL)
if ((IS_TOPREQ(req) && req->top->vcl0 != NULL) || req->restarts > 0)
return; // Illegal, req-FSM will fail this later.
/* XXX VCL_Task* are somewhat duplicated to those in Req_Rollback called
......
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