Fix incorrectly handling of error messages 95/245395/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121743 accepted/tizen/6.0/unified/hotfix/20201103.004011 accepted/tizen/6.0/unified/hotfix/20201103.050934 accepted/tizen/unified/20201009.090844 submit/tizen/20201008.064833 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorJaehyun Kim <jeik01.kim@samsung.com>
Thu, 8 Oct 2020 06:43:15 +0000 (15:43 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Thu, 8 Oct 2020 06:43:15 +0000 (15:43 +0900)
Change-Id: Iffc04453482fe401f39278e915e0b4c1f7cc7e17
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/network_dbus.c

index 96e9c21..2e5e6c7 100755 (executable)
 #define WIFI_SECURITY_DPP                      "dpp"
 
 //LCOV_EXCL_START
-static int __net_error_string_to_enum(const char *error_str)
+static int __net_error_string_to_enum(const char *error)
 {
-       gchar *error = NULL;
-
-       WIFI_LOG(WIFI_INFO, "Passed error string [%s]", error_str);
-
-       error = g_strrstr(error_str, ".");
-       if (error == NULL)
-               return NET_ERR_UNKNOWN;
-
-       error++;
+       WIFI_LOG(WIFI_INFO, "Passed error string [%s]", error);
 
        if (NULL != strstr(error, "NoReply"))
                return NET_ERR_TIME_OUT;