Skip to content

mctpd: initialize peer to NULL to fix error path#145

Open
haiyuewa wants to merge 1 commit intoCodeConstruct:mainfrom
haiyuewa:fix-NULL-peer
Open

mctpd: initialize peer to NULL to fix error path#145
haiyuewa wants to merge 1 commit intoCodeConstruct:mainfrom
haiyuewa:fix-NULL-peer

Conversation

@haiyuewa
Copy link

Initialize peer to NULL to avoid using an uninitialized pointer in the error path when sd_bus_message_read() fails to get 'eid'.

Initialize peer to NULL to avoid using an uninitialized pointer in the
error path when sd_bus_message_read() fails to get 'eid'.

Signed-off-by: Haiyue Wang <haiyuewa@163.com>
@jk-ozlabs jk-ozlabs self-assigned this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants