Adjust to VDP API changes as of Varnish-Cache 7.6

parent 253cd88a
......@@ -1489,20 +1489,16 @@ re_vfp_fini(struct vfp_ctx *vc, struct vfp_entry *vfe)
(type *)((char *)__mptr - offsetof(type, member)) ; })
static int v_matchproto_(vdp_init_f)
re_vdp_init(VRT_CTX, struct vdp_ctx *vdx, void **priv, struct objcore *oc)
re_vdp_init(VRT_CTX, struct vdp_ctx *vdx, void **priv)
{
const struct vmod_re_regex *re;
struct vdp_container *vdpc;
struct re_flt_state *res;
struct vdp_entry *vde;
struct vmod_priv *task;
struct req *req;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(vdx, VDP_CTX_MAGIC);
CHECK_OBJ_ORNULL(oc, OBJCORE_MAGIC);
req = vdx->req;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
/*
* making a mountain out of a molehill because we do not
......@@ -1531,7 +1527,8 @@ re_vdp_init(VRT_CTX, struct vdp_ctx *vdx, void **priv, struct objcore *oc)
AZ(*priv);
*priv = res;
req->resp_len = -1;
AN(vdx->clen);
*vdx->clen = -1;
return (0);
}
......
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