commit 847a8ba265ce13425e8bfbad5ee269ad5d85d26e
parent 226fd5c0b8ff674302df5b32c3e43b011a316dda
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 7 Jan 2022 09:58:49 -0800
dpp: memset header to fix uninitialized buffer
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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);