If the time of destroying the wifi handle overlaps
with the time of signal arrival,
there is a possibility that user_data of the wifi handle
that has already been destroyed may be passed in
the signal handler due to timing.
Because this may cause malfunctions,
code to verify user_data has been added.
Change-Id: I3966a3b541275449fbd25dc8f285963148b65fc5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
{
network_info_s *network_info = (network_info_s *)user_data;
+ if (!_wifi_find_network_info_from_handle_list(network_info))
+ return;
+
if (g_strcmp0(sig, NETCONFIG_SIGNAL_POWERON_COMPLETED) == 0)
__net_handle_wifi_power_rsp(network_info, param, TRUE);
else if (g_strcmp0(sig, NETCONFIG_SIGNAL_POWEROFF_COMPLETED) == 0)