Commit d234259d authored by Nils Goroll's avatar Nils Goroll

fix: make sure we consider the existing blacklist length

When cluster_task_param_l as called with black==0, we would
fail to alloc enough space for the existing blacklist, so
the blacklist would get overwritten by the next allocation
on the workspace
parent 4e978f7a
......@@ -139,6 +139,8 @@ cluster_task_param_l(VRT_CTX, struct vmod_cluster_cluster *vc,
if (nblack == -1)
return (p);
if (o && nblack < o->nblack)
nblack = o->nblack;
/*
* make the (new) allocation and copy or return if not required
* if space was provided, we always return it
......
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