Skip to content

Commit

Permalink
DAOS-16812 cart: read after free cid 2556737 (#15517)
Browse files Browse the repository at this point in the history
- If failed to reply, skip rpc early buffer release

Required-githooks: true

Signed-off-by: Alexander A Oganezov <[email protected]>
  • Loading branch information
frostedcmos authored Nov 19, 2024
1 parent f512f48 commit e74680c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cart/crt_hg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ crt_hg_reply_send(struct crt_rpc_priv *rpc_priv)
DP_HG_RC(hg_ret));
/* should success as addref above */
RPC_DECREF(rpc_priv);
rc = crt_hgret_2_der(hg_ret);
D_GOTO(out, rc = crt_hgret_2_der(hg_ret));
}

/* Release input buffer */
Expand All @@ -1499,6 +1499,7 @@ crt_hg_reply_send(struct crt_rpc_priv *rpc_priv)
}
}

out:
return rc;
}

Expand Down

0 comments on commit e74680c

Please sign in to comment.