projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bae31a0
)
Don't re-enable configuration if already set
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 5 Jan 2010 00:35:49 +0000
(16:35 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 5 Jan 2010 00:35:49 +0000
(16:35 -0800)
src/ipconfig.c
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
07fa770
..
df708bb
100644
(file)
--- 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);