[WGID-159165] Fixed unreachable code 66/141866/2
authorchleun.moon <chleun.moon@samsung.com>
Wed, 2 Aug 2017 01:05:54 +0000 (10:05 +0900)
committercheoleun moon <chleun.moon@samsung.com>
Wed, 2 Aug 2017 01:21:45 +0000 (01:21 +0000)
Change-Id: I1ce80c61300e216e0b784fc5937cfb81734618b6
Signed-off-by: cheoleun <chleun.moon@samsung.com>
packaging/net-config.spec
src/vpnsvc-internal.c

index 9eef9f57a4d45cece1324339bb16b912d10e82b2..114c2250dca693a22d0d4069757c4f5d934a07f6 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.101
+Version:       1.1.102
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 60a7138d91e1e42e5dcb03684ad247845cc77d6f..7d1a10c2ba56e313c69d8bf139a2506eb4ccc126 100755 (executable)
@@ -157,10 +157,8 @@ static char *connman_default_profile(GDBusConnection *connection)
 
        if (message) {
                g_variant_get(message, "(a(oa{sv}))", &iter);
-               while (g_variant_iter_loop(iter, "(oa{sv})", &key, &value)) {
+               if (g_variant_iter_loop(iter, "(oa{sv})", &key, &value))
                        profile = strdup(key);
-                       break;
-               }
 
                if (value)
                        g_variant_iter_free(value);