ipmitool/0005-zero-initialize-the-recv-structure-on-the-stack.patch

27 lines
685 B
Diff
Raw Permalink Normal View History

From 5ac7f6a54e0a416fc37e962c2be87b16821cc771 Mon Sep 17 00:00:00 2001
From: Patrick Venture <pstrinkle@users.noreply.github.com>
Date: Wed, 3 Nov 2021 14:10:53 -0700
Subject: [PATCH] zero initialize the recv structure on the stack
Zero initialize the recv structure used by openipmi_read().
---
src/ipmievd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipmievd.c b/src/ipmievd.c
index 2c19887..6a94b1f 100644
--- a/src/ipmievd.c
+++ b/src/ipmievd.c
@@ -422,7 +422,7 @@ static int
openipmi_read(struct ipmi_event_intf * eintf)
{
struct ipmi_addr addr;
- struct ipmi_recv recv;
+ struct ipmi_recv recv = {};
uint8_t data[80];
int rv;
--
2.25.1