Adjust to varnish-cache api changes

parent 4a26fb04
......@@ -179,7 +179,7 @@ match(VRT_CTX, const vre_t *vre, VCL_STRING subject, struct vmod_priv *task,
ov->magic = OV_MAGIC;
}
else {
WS_Assert_Allocated(ctx->ws, task->priv, sizeof(*ov));
AN(WS_Allocated(ctx->ws, task->priv, sizeof(*ov)));
CAST_OBJ_NOTNULL(ov, task->priv, OV_MAGIC);
}
......@@ -265,7 +265,7 @@ backref(VRT_CTX, VCL_INT refnum, VCL_STRING fallback,
if (task->len <= 0)
return fallback;
WS_Assert_Allocated(ctx->ws, task->priv, sizeof(*ov));
AN(WS_Allocated(ctx->ws, task->priv, sizeof(*ov)));
CAST_OBJ_NOTNULL(ov, task->priv, OV_MAGIC);
refnum *= 2;
......
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