Initialize prof_info as zero 13/261313/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20210719.124405 accepted/tizen/6.0/unified/20210810.135204 submit/tizen_6.0/20210715.075430 submit/tizen_6.0/20210716.064646 submit/tizen_6.0/20210810.062816
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 15 Jul 2021 07:44:27 +0000 (16:44 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 15 Jul 2021 07:44:33 +0000 (16:44 +0900)
Change-Id: I0244980526d9cd4a7d06b53921975bbba25f1a7e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/network_dbus.c
src/network_interface.c

index d308718..4c43935 100755 (executable)
@@ -303,6 +303,8 @@ static void __net_open_connection_reply(GObject *source_object, GAsyncResult *re
        open_info = &request_table[NETWORK_REQUEST_TYPE_OPEN_CONNECTION];
        wps_info = &request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS];
 
+       memset(&prof_info, 0, sizeof(net_profile_info_s));
+
        if (open_info->flag == TRUE) {
                g_strlcpy(event_data->ProfileName, open_info->ProfileName,
                                NET_PROFILE_NAME_LEN_MAX + 1);
index 3a70e8f..7ea71ae 100755 (executable)
@@ -3012,6 +3012,7 @@ int net_delete_profile(network_info_s *network_info, const char* profile_name)
                return NET_ERR_INVALID_PARAM; //LCOV_EXCL_LINE
        }
 
+       memset(&prof_info, 0, sizeof(net_profile_info_s));
        Error = __net_get_profile_info(network_info, profile_name, &prof_info);
        if (Error != NET_ERR_NONE) {
                WIFI_LOG(WIFI_ERROR, //LCOV_EXCL_LINE