From efdc2a63eb78cfc13ac03191808040b4a6fb7237 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 26 Oct 2023 13:26:45 -0700 Subject: [PATCH] dpp: check configurator role in config request frame We shouldn't ever get this frame as an enrollee, so disregard --- src/dpp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dpp.c b/src/dpp.c index c93b9f1c..52a0ecc1 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -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;