mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
zero initialize the recv structure on the stack
This was caught via a sanitized build where the recv was used with stack data in some cases.
This commit is contained in:
parent
39ca56bf33
commit
a24a512bdd
@ -170,7 +170,7 @@ static
|
|||||||
struct ipmi_rs *
|
struct ipmi_rs *
|
||||||
ipmi_openipmi_send_cmd(struct ipmi_intf *intf, struct ipmi_rq *req)
|
ipmi_openipmi_send_cmd(struct ipmi_intf *intf, struct ipmi_rq *req)
|
||||||
{
|
{
|
||||||
struct ipmi_recv recv;
|
struct ipmi_recv recv = {};
|
||||||
struct ipmi_addr addr;
|
struct ipmi_addr addr;
|
||||||
struct ipmi_system_interface_addr bmc_addr = {
|
struct ipmi_system_interface_addr bmc_addr = {
|
||||||
.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE,
|
.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user