diff options
author | Daichi Ueura <daichi.ueura@sonymobile.com> | 2016-03-01 18:26:38 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-03-03 14:25:49 (GMT) |
commit | cbf8d181c38fd3ca7a695ce169d7349914eab0c5 (patch) | |
tree | 28386a7286e049effdd4e080b5b8e41f377517db /wpa_supplicant/hs20_supplicant.c | |
parent | 4a6e9e5599a71ce69ffac7acadca7a6da72f892a (diff) | |
download | hostap-cbf8d181c38fd3ca7a695ce169d7349914eab0c5.zip hostap-cbf8d181c38fd3ca7a695ce169d7349914eab0c5.tar.gz hostap-cbf8d181c38fd3ca7a695ce169d7349914eab0c5.tar.bz2 |
HS 2.0R2: Clear fetch_anqp_in_progress if fopen fails
Clear wpa_s->fetch_anqp_in_progress when osu-providers.txt can't be
opened. An issue happens, for instance, when wpa_supplicant doesn't
have correct access permission to the directory specified by osu_dir.
If hs20_osu_fetch_done method returns without clearing the flag,
'FETCH_OSU' command will never work correctly.
Signed-off-by: Daichi Ueura <daichi.ueura@sonymobile.com>
Diffstat (limited to 'wpa_supplicant/hs20_supplicant.c')
-rw-r--r-- | wpa_supplicant/hs20_supplicant.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/hs20_supplicant.c b/wpa_supplicant/hs20_supplicant.c index 57b9943..3128fcb 100644 --- a/wpa_supplicant/hs20_supplicant.c +++ b/wpa_supplicant/hs20_supplicant.c @@ -664,6 +664,7 @@ static void hs20_osu_fetch_done(struct wpa_supplicant *wpa_s) f = fopen(fname, "w"); if (f == NULL) { hs20_free_osu_prov(wpa_s); + wpa_s->fetch_anqp_in_progress = 0; return; } |