Commit d1cea9bb authored by Nils Goroll's avatar Nils Goroll

add assertions requested by @Dridi

parent 542bf9b8
...@@ -90,6 +90,8 @@ VPI_vcl_select(VRT_CTX, VCL_VCL vcl) ...@@ -90,6 +90,8 @@ VPI_vcl_select(VRT_CTX, VCL_VCL vcl)
struct req *req = ctx->req; struct req *req = ctx->req;
CHECK_OBJ_NOTNULL(vcl, VCL_MAGIC); CHECK_OBJ_NOTNULL(vcl, VCL_MAGIC);
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)
return; // Illegal, req-FSM will fail this later. return; // Illegal, req-FSM will fail this later.
......
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