From: Jouni Malinen Date: Tue, 15 Mar 2022 08:39:09 +0000 (+0200) Subject: DPP: Fix msg_ctx for PKEX over TCP as Controller/Responder X-Git-Tag: hostap_2_11~2143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b93d1083ee9017ee4b22c203902ed0228c6a72f4;p=thirdparty%2Fhostap.git 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 --- 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,