Make init_task idempotent

parent 83480b40
......@@ -260,7 +260,7 @@ init_task(VRT_CTX, struct vmod_priv *task)
ov_t *ov;
AN(task);
AZ(task->priv);
if (task->priv == NULL)
task->priv = WS_Alloc(ctx->ws, sizeof(*ov));
if (task->priv == NULL) {
VSLb(ctx->vsl, SLT_VCL_Error, "vmod re error: "
......
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