From 06f2df0693bf43d28d8d12cdfbb95a1c55e6e058 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 2 Nov 2017 12:23:17 +0200 Subject: [PATCH] DPP: Fix hostapd control interface events for initiator case Incorrect msg_ctx was registered for the wpa_msg() calls from the DPP module. Signed-off-by: Jouni Malinen --- src/ap/dpp_hostapd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 549116a97..5c00d5c17 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -503,7 +503,8 @@ int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd) if (hapd->dpp_auth) dpp_auth_deinit(hapd->dpp_auth); - hapd->dpp_auth = dpp_auth_init(hapd, peer_bi, own_bi, configurator, 0); + hapd->dpp_auth = dpp_auth_init(hapd->msg_ctx, peer_bi, own_bi, + configurator, 0); if (!hapd->dpp_auth) goto fail; hostapd_dpp_set_testing_options(hapd, hapd->dpp_auth);