summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-29 11:43:00 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-30 10:26:56 +0200
commit1746041914ba76450ca898f564e0811e4874f527 (patch)
tree62144f5171fbbc4b3c5c06b1ff7e5ad5fab8a4af
parentfd0bc5cdfaa1d0bf6abf32e71abde45f581572ee (diff)
downloadconnman-1746041914ba76450ca898f564e0811e4874f527.tar.gz
connman-1746041914ba76450ca898f564e0811e4874f527.tar.bz2
connman-1746041914ba76450ca898f564e0811e4874f527.zip
network: Unset driver on failed match
-rw-r--r--src/network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c
index bef6e0d9..0d95af88 100644
--- a/src/network.c
+++ b/src/network.c
@@ -762,8 +762,10 @@ static int network_probe(struct connman_network *network)
for (list = driver_list; list; list = list->next) {
driver = list->data;
- if (match_driver(network, driver) == FALSE)
+ if (match_driver(network, driver) == FALSE) {
+ driver = NULL;
continue;
+ }
DBG("driver %p name %s", driver, driver->name);