Skip to content

Commit

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

Signed-off-by: Alexander A Oganezov <[email protected]>
  • Loading branch information
frostedcmos authored Dec 13, 2024
1 parent ebccb75 commit bdea4aa
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 @@ -1479,7 +1479,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 @@ -1492,6 +1492,7 @@ crt_hg_reply_send(struct crt_rpc_priv *rpc_priv)
}
}

out:
return rc;
}

Expand Down

0 comments on commit bdea4aa

Please sign in to comment.