Commit 89872065 authored by Geoff Simmons's avatar Geoff Simmons

Fix the backported fix for #13 (adds a NULL check).

parent 3916146f
......@@ -624,11 +624,13 @@ fini_subreq(const struct vdp_ctx *vdx, struct node *node)
assert(node->type == T_SUBREQ);
CAST_OBJ_NOTNULL(subreq, node->subreq.req, REQ_MAGIC);
CAST_OBJ_NOTNULL(pesi, subreq->transport_priv, PESI_MAGIC);
CHECK_OBJ_NOTNULL(pesi->pesi_tree, PESI_TREE_MAGIC);
CHECK_OBJ_NOTNULL(pesi->pesi_tree->tree, BYTES_TREE_MAGIC);
subreq_wait_done(node, pesi->pesi_tree->tree);
if (node->subreq.req != NULL) {
CAST_OBJ(subreq, node->subreq.req, REQ_MAGIC);
CAST_OBJ_NOTNULL(pesi, subreq->transport_priv, PESI_MAGIC);
CHECK_OBJ_NOTNULL(pesi->pesi_tree, PESI_TREE_MAGIC);
CHECK_OBJ_NOTNULL(pesi->pesi_tree->tree, BYTES_TREE_MAGIC);
subreq_wait_done(node, pesi->pesi_tree->tree);
}
AN(node->subreq.done);
......
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