projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f294f
)
ofono: Delay ipconfig structure cleanup
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 17 Dec 2010 11:14:30 +0000
(12:14 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 17 Dec 2010 11:14:30 +0000
(12:14 +0100)
Cleaning the structure before calling connman_network_set_connected(FALSE)
prevents the gateways from being properly freed.
plugins/ofono.c
patch
|
blob
|
history
diff --git
a/plugins/ofono.c
b/plugins/ofono.c
index
4379625
..
0a13b7b
100644
(file)
--- a/
plugins/ofono.c
+++ b/
plugins/ofono.c
@@
-1516,10
+1516,11
@@
static void set_connected(struct connman_network *network,
case CONNMAN_IPCONFIG_METHOD_FIXED:
connman_network_set_ipv4_method(network, method);
+ connman_network_set_connected(network, connected);
+
if (connected == FALSE)
cleanup_ipconfig(network);
- connman_network_set_connected(network, connected);
break;
case CONNMAN_IPCONFIG_METHOD_DHCP: