Commit 38d02402 authored by Nils Goroll's avatar Nils Goroll
parent ce1e8c0d
Pipeline #440 failed with stages
...@@ -78,10 +78,17 @@ static void * ...@@ -78,10 +78,17 @@ static void *
state_l(VRT_CTX, void *v, size_t sz) state_l(VRT_CTX, void *v, size_t sz)
{ {
struct vmod_priv *t; struct vmod_priv *t;
struct ws *ws;
top_common(ctx, t, v); top_common(ctx, t, v);
t->priv = WS_Alloc(ctx->req->topreq->ws, sz); if (ctx->req->top)
ws = ctx->req->top->topreq->ws;
else
ws = ctx->req->ws;
t->priv = WS_Alloc(ws, sz);
if (t->priv == NULL) { if (t->priv == NULL) {
VRT_fail(ctx, "out of workspace"); VRT_fail(ctx, "out of workspace");
return (NULL); return (NULL);
......
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