Fix for p2p_client_num being a garbage value in some cases. 51/226251/3 accepted/tizen/unified/20200303.032545 submit/tizen/20200302.055800
authorSuraj Geddam <suraj.geddam@samsung.com>
Fri, 28 Feb 2020 07:23:52 +0000 (12:53 +0530)
committerSuraj Geddam <suraj.geddam@samsung.com>
Fri, 28 Feb 2020 08:51:11 +0000 (14:21 +0530)
Change-Id: Id79b27ca469398acd67841ad3cfd27e66d1d8c30

plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index c408777..9ae8403 100644 (file)
@@ -5935,6 +5935,7 @@ int ws_remove_persistent_group(char *ssid, unsigned char *bssid)
                __WDP_LOG_FUNC_EXIT__;
                return -1;
        }
+       memset(&networks, 0x0, WS_MAX_PERSISTENT_COUNT * sizeof(ws_network_info_s));
        dbus_property_get_all(g_pd->iface_path, g_dbus, SUPPLICANT_P2PDEVICE,
                        __ws_extract_p2pdevice_details, networks);