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

unit: test-sae: zero out frame buffers

Not all the authenticate frame elements are set and were assumed
to be zero. Since alloca does not memset data it needs to be
done explicitly.
This commit is contained in:
James Prestwood 2021-02-08 14:23:14 -08:00 committed by Denis Kenzior
parent 6930987aa6
commit e009f6298a

View File

@ -202,6 +202,7 @@ static size_t setup_auth_frame(struct authenticate_frame *frame,
uint16_t trans, uint16_t status,
const uint8_t *data, size_t len)
{
memset(frame, 0, sizeof(struct authenticate_frame));
memcpy(frame->hdr.address_2, addr, 6);
frame->hdr.fc.type = MPDU_TYPE_MANAGEMENT;