]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix msg_ctx for PKEX over TCP as Controller/Responder
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 15 Mar 2022 08:39:09 +0000 (10:39 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Mar 2022 22:56:53 +0000 (00:56 +0200)
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 <quic_jouni@quicinc.com>
src/common/dpp_tcp.c

index 81145498432203821165f97c1a720720c216f06c..5f779934fa295be3213f382894fc6eadc5c59fa3 100644 (file)
@@ -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,