mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
dpp: memset header to fix uninitialized buffer
This commit is contained in:
parent
226fd5c0b8
commit
847a8ba265
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user