Unverified Commit 3370a4c4 authored by Nils Goroll's avatar Nils Goroll

Wait for sub requests to finish before deleting the node

Fixes https://gitlab.com/uplex/varnish/libvdp-pesi/-/issues/10
parent fe011fac
......@@ -622,6 +622,8 @@ fini_subreq(const struct vdp_ctx *vdx, struct node *node)
assert(node->type == T_SUBREQ);
if (node->subreq.done == 0)
subreq_wait_done(node);
AN(node->subreq.done);
if (node->subreq.req == 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