From 4adb492b32b8ef1afa11a6d29eef904c25212430 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 4 Jan 2010 16:35:49 -0800 Subject: Don't re-enable configuration if already set --- src/ipconfig.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ipconfig.c b/src/ipconfig.c index 07fa7703..df708bb2 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -895,6 +895,9 @@ int __connman_ipconfig_enable(struct connman_ipconfig *ipconfig) if (ipdevice == NULL) return -ENXIO; + if (ipdevice->config == ipconfig) + return -EALREADY; + if (ipdevice->config != NULL) { ipconfig_list = g_list_remove(ipconfig_list, ipconfig); -- cgit v1.2.3