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:
fe13268
)
supplicant: Check for network before removing it
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 3 Nov 2010 16:44:33 +0000
(17:44 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 3 Nov 2010 17:08:32 +0000
(18:08 +0100)
When disconnecting by removing a network, check that the targeted network
is the one currently set.
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
469e109
..
f0d1a4f
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-2538,6
+2538,9
@@
int supplicant_disconnect(struct connman_network *network)
if (task->disconnecting == TRUE)
return -EALREADY;
+ if (task->network != network)
+ return -EINVAL;
+
remove_network(task);
disconnect_network(task);