]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix fils_cache_id check
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Thu, 23 Mar 2017 10:41:22 +0000 (16:11 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 26 Mar 2017 18:13:21 +0000 (21:13 +0300)
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 <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c

index 6e59f2d84625ecb7f1d7c076bf84705ca7bd6640..c91affcfa658ce4a019e7706e9d58d11be16b031 100644 (file)
@@ -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;