Make init_task idempotent

parent 83480b40
......@@ -260,8 +260,8 @@ init_task(VRT_CTX, struct vmod_priv *task)
ov_t *ov;
AN(task);
AZ(task->priv);
task->priv = WS_Alloc(ctx->ws, sizeof(*ov));
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: "
"insufficient workspace for backref data");
......
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