aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-01-15 16:39:03 (GMT)
committerJouni Malinen <j@w1.fi>2016-01-15 16:39:03 (GMT)
commit2e3a41a53fc20a8d209f5f90072d055f91cee75f (patch)
treedbbe9219f1341fe1f6041d2646b6f066d08736d5 /hs20
parentfb3db14a6f88d57320da5deee626b436c242fa7b (diff)
downloadhostap-2e3a41a53fc20a8d209f5f90072d055f91cee75f.zip
hostap-2e3a41a53fc20a8d209f5f90072d055f91cee75f.tar.gz
hostap-2e3a41a53fc20a8d209f5f90072d055f91cee75f.tar.bz2
hs20-osu-client: Fix check for osu_nai being available
This is an array, so the pointer is never NULL; need to check that the first character is not '\0' instead. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/osu_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 0315f7b..35793c8 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -2229,7 +2229,7 @@ static int cmd_osu_select(struct hs20_osu_client *ctx, const char *dir,
fprintf(f, "</table></a><br><small>BSSID: %s<br>\n"
"SSID: %s<br>\n",
last->bssid, last->osu_ssid);
- if (last->osu_nai)
+ if (last->osu_nai[0])
fprintf(f, "NAI: %s<br>\n", last->osu_nai);
fprintf(f, "URL: %s<br>\n"
"methods:%s%s<br>\n"