Commit 890f81d
committed
mctpd: initialize peer to NULL to fix error path
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>1 parent 0340102 commit 890f81d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3714 | 3714 | | |
3715 | 3715 | | |
3716 | 3716 | | |
3717 | | - | |
| 3717 | + | |
3718 | 3718 | | |
3719 | 3719 | | |
3720 | 3720 | | |
| |||
0 commit comments