aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-03-27 08:49:47 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-20 09:02:22 (GMT)
commitb08750afb3b3108e1857e37ae162b52c3ecbe3b3 (patch)
treeaa31abd8ce2ad72f04881f8241db3cead16928c4
parentc4d368d8884391d58b849e09266347a558c04475 (diff)
downloadhostap-06-b08750afb3b3108e1857e37ae162b52c3ecbe3b3.zip
hostap-06-b08750afb3b3108e1857e37ae162b52c3ecbe3b3.tar.gz
hostap-06-b08750afb3b3108e1857e37ae162b52c3ecbe3b3.tar.bz2
Fix: Loop in driver selection routine
Increment an index variable not 'i' but 'j'. (this was broken yesterday by a cleanup change 3067ac2bb82553c99cb84e32ede82de434ee1070) (cherry picked from commit 871bb568d2ebf74fb3b1bb918d160328b0e6b959)
-rw-r--r--hostapd/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config.c b/hostapd/config.c
index a9e47d1..e90fa36 100644
--- a/hostapd/config.c
+++ b/hostapd/config.c
@@ -1455,7 +1455,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
int j;
/* clear to get error below if setting is invalid */
conf->driver = NULL;
- for (j = 0; hostapd_drivers[j]; i++) {
+ for (j = 0; hostapd_drivers[j]; j++) {
if (os_strcmp(pos, hostapd_drivers[j]->name) ==
0) {
conf->driver = hostapd_drivers[j];