Commit 8fb40496 authored by Nils Goroll's avatar Nils Goroll

Handle VRT_priv_task errors gracefully

The reason is the same as for
https://github.com/varnishcache/varnish-cache/issues/2708 :

VRT_priv_task may now return NULL for out-of-workspace errors, see
https://github.com/varnishcache/varnish-cache/commit/de2b431086a13b243dc8b3e71cd8697db1df2c7f
parent e8db5894
......@@ -317,6 +317,11 @@ get_scope(const struct vrt_ctx * const restrict ctx,
WRONG("invalid scope");
}
if (priv == NULL) {
ERR(ctx, "no priv - out of workspace?");
return NULL;
}
AN(priv);
AN(ws);
......
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