From: Vidyullatha Kanchanapally Date: Thu, 23 Mar 2017 10:41:22 +0000 (+0530) Subject: FILS: Fix fils_cache_id check X-Git-Tag: hostap_2_7~1424 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc6574d00e780726a3d8d3043df1c79c9f5c7d0;p=thirdparty%2Fhostap.git FILS: Fix fils_cache_id check This fixes the following compiler warning: wpa_auth.c:4249:34: error: address of array 'a->conf.fils_cache_id' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] Signed-off-by: Jouni Malinen --- diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 6e59f2d84..c91affcfa 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -4246,7 +4246,7 @@ static int wpa_auth_fils_iter(struct wpa_authenticator *a, void *ctx) { struct wpa_auth_fils_iter_data *data = ctx; - if (a == data->auth || !a->conf.fils_cache_id || + if (a == data->auth || !a->conf.fils_cache_id_set || os_memcmp(a->conf.fils_cache_id, data->cache_id, FILS_CACHE_ID_LEN) != 0) return 0;