dpp: check configurator role in config request frame

We shouldn't ever get this frame as an enrollee, so disregard
This commit is contained in:
James Prestwood 2023-10-26 13:26:45 -07:00 committed by Denis Kenzior
parent 3e0e31544e
commit efdc2a63eb
1 changed files with 3 additions and 0 deletions

View File

@ -946,6 +946,9 @@ static void dpp_handle_config_request_frame(const struct mmpdu_header *frame,
return;
}
if (dpp->role != DPP_CAPABILITY_CONFIGURATOR)
return;
if (memcmp(dpp->peer_addr, frame->address_2, 6)) {
l_debug("Configuration request not from authenticated peer");
return;