From b93d1083ee9017ee4b22c203902ed0228c6a72f4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 Mar 2022 10:39:09 +0200 Subject: [PATCH] DPP: Fix msg_ctx for PKEX over TCP as Controller/Responder PKEX Exchange Request handling in Controller used incorrect msg_ctx pointer and that could result in event messages causing unexpected behavior. Fix this by registering the correct msg_ctx pointer for these cases. Signed-off-by: Jouni Malinen --- src/common/dpp_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index 811454984..5f779934f 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -1013,7 +1013,7 @@ static int dpp_controller_rx_pkex_exchange_req(struct dpp_connection *conn, return 0; } - conn->pkex = dpp_pkex_rx_exchange_req(conn->ctrl->global, ctrl->pkex_bi, + conn->pkex = dpp_pkex_rx_exchange_req(conn->msg_ctx, ctrl->pkex_bi, NULL, NULL, ctrl->pkex_identifier, ctrl->pkex_code, -- 2.47.2