From 94992da9338cb061c9277df2936001b319a07f21 Mon Sep 17 00:00:00 2001 From: Robert Middleton Date: Mon, 22 Dec 2025 17:48:58 -0500 Subject: [PATCH] Clear out status memory when an LSTAT message comes in --- src/osdp_pd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osdp_pd.c b/src/osdp_pd.c index fea0070..b4e1d59 100644 --- a/src/osdp_pd.c +++ b/src/osdp_pd.c @@ -367,6 +367,7 @@ static int pd_decode_command(struct osdp_pd *pd, uint8_t *buf, int len) break; } cmd.id = OSDP_CMD_STATUS; + memset(&cmd.status, 0, sizeof(cmd.status)); cmd.status.type = OSDP_STATUS_REPORT_LOCAL; if (!do_command_callback(pd, &cmd)) { ret = OSDP_PD_ERR_REPLY;