summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-04 16:35:49 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-01-04 16:35:49 -0800
commit4adb492b32b8ef1afa11a6d29eef904c25212430 (patch)
treedaf4ce7ee536ed86b718a2a3bb64c154e3135353
parentbae31a0cb4d6544437d55494f111d77648d41066 (diff)
downloadconnman-4adb492b32b8ef1afa11a6d29eef904c25212430.tar.gz
connman-4adb492b32b8ef1afa11a6d29eef904c25212430.tar.bz2
connman-4adb492b32b8ef1afa11a6d29eef904c25212430.zip
Don't re-enable configuration if already set
-rw-r--r--src/ipconfig.c3
1 files changed, 3 insertions, 0 deletions
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);