Revert "assert magic of vrt_privs when finalizing"

This change also exposed #3385

See #3470 for a suggestion how to get out of this

This reverts commit 5cbb3586.
parent 5cbb3586
......@@ -225,9 +225,7 @@ VCL_TaskLeave(struct vrt_privs *privs)
* a costly operation. Instead we safely walk the whole tree and clear
* the head at the very end.
*/
VRBT_FOREACH_SAFE(vp, vrt_privs, privs, vp1) {
CHECK_OBJ(vp, VRT_PRIV_MAGIC);
VRBT_FOREACH_SAFE(vp, vrt_privs, privs, vp1)
VRT_priv_fini(vp->priv);
}
ZERO_OBJ(privs, sizeof *privs);
}
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