diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/net_eap/net_eap_observer.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/net_eap/net_eap_observer.cpp index b87cb6a5787d81863da505d2e561075e013716b1..63da3e145f731d03b1d3a68297441770c7cab6a1 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/net_eap/net_eap_observer.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/net_eap/net_eap_observer.cpp @@ -102,7 +102,8 @@ void NetEapObserver::ReRegisterCustomEapCallback() bool NetEapObserver::NotifyWpaEapInterceptInfo(const WpaEapData &wpaEapData) { - sptr notifyEapData = (std::make_unique()).release(); + std::make_unique lock(mutex_); + sptr notifyEapData = sptr::MakeSptr(); notifyEapData->eapCode = wpaEapData.code; notifyEapData->eapType = wpaEapData.type; notifyEapData->msgId = wpaEapData.msgId;