]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Do not add Key MIC field in supplicant when using AEAD cipher
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 2 Sep 2015 21:21:18 +0000 (00:21 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Oct 2016 18:11:46 +0000 (21:11 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/wpa.c

index 2c964fd1a248c6889c6abec862819b0d6b357408..498108f9d8b00b687a5d5a0119e2b887f0083700 100644 (file)
@@ -64,7 +64,7 @@ int wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck, size_t kck_len,
                                MAC2STR(dest));
                }
        }
-       if (key_mic &&
+       if (key_mic && mic_len &&
            wpa_eapol_key_mic(kck, kck_len, sm->key_mgmt, ver, msg, msg_len,
                              key_mic)) {
                wpa_msg(sm->ctx->msg_ctx, MSG_ERROR,