DPP2: Fix Presence Announcement processing in Controller
Use the new struct dpp_authentication instance when setting Configurator
parameters for authentication exchange triggered by Presence
Announcement. conn->auth is NULL here and would cause dereferencing of a
NULL pointer if dpp_configurator_params is set.
Fixes: fa5143feb3
("DPP2: Presence Announcement processing in Controller")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
5e2d877cc4
commit
3b4f7dfaa1
1 changed files with 1 additions and 2 deletions
|
@ -804,8 +804,7 @@ static int dpp_controller_rx_presence_announcement(struct dpp_connection *conn,
|
|||
DPP_CAPAB_CONFIGURATOR, -1, NULL, 0);
|
||||
if (!auth)
|
||||
return -1;
|
||||
if (dpp_set_configurator(conn->auth,
|
||||
conn->ctrl->configurator_params) < 0) {
|
||||
if (dpp_set_configurator(auth, conn->ctrl->configurator_params) < 0) {
|
||||
dpp_auth_deinit(auth);
|
||||
dpp_connection_remove(conn);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue