3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

dpp: memset header to fix uninitialized buffer

This commit is contained in:
James Prestwood 2022-01-07 09:58:49 -08:00 committed by Denis Kenzior
parent 226fd5c0b8
commit 847a8ba265

View File

@ -656,6 +656,8 @@ static void dpp_send_config_response(struct dpp_sm *dpp, uint8_t status)
size_t json_len; size_t json_len;
uint8_t *ptr = hdr + 24; uint8_t *ptr = hdr + 24;
memset(hdr, 0, sizeof(hdr));
l_put_le16(0x00d0, hdr); l_put_le16(0x00d0, hdr);
memcpy(hdr + 4, dpp->auth_addr, 6); memcpy(hdr + 4, dpp->auth_addr, 6);
memcpy(hdr + 10, netdev_get_address(dpp->netdev), 6); memcpy(hdr + 10, netdev_get_address(dpp->netdev), 6);