* [PATCH 2/2] dpp: memset header to fix uninitialized buffer
@ 2022-01-07 17:58 James Prestwood
0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-01-07 17:58 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
---
src/dpp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/dpp.c b/src/dpp.c
index f62bcebb..20c27a57 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -656,6 +656,8 @@ static void dpp_send_config_response(struct dpp_sm *dpp, uint8_t status)
size_t json_len;
uint8_t *ptr = hdr + 24;
+ memset(hdr, 0, sizeof(hdr));
+
l_put_le16(0x00d0, hdr);
memcpy(hdr + 4, dpp->auth_addr, 6);
memcpy(hdr + 10, netdev_get_address(dpp->netdev), 6);
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-07 17:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 17:58 [PATCH 2/2] dpp: memset header to fix uninitialized buffer James Prestwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox