]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RSN: Fix (B)IGTK MLO KDE length print
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 10 Jan 2024 15:31:04 +0000 (17:31 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 21:47:20 +0000 (23:47 +0200)
Array pointer was mistakenly printed instead of actual length.
Fix it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/rsn_supp/wpa.c

index b3bc2bbedf5ba8e6d609d3adc490168e03991539..5f222dd3dd36b0d344998aaf928b7d71a4ab4a4d 100644 (file)
@@ -2318,7 +2318,7 @@ static int wpa_validate_mlo_ieee80211w_kdes(struct wpa_sm *sm,
            (unsigned int) wpa_cipher_key_len(sm->mgmt_group_cipher)) {
                wpa_msg(sm->ctx->msg_ctx, MSG_INFO,
                        "RSN MLO: Invalid IGTK KDE length %lu for link ID %u",
-                       (unsigned long) ie->mlo_igtk_len, link_id);
+                       (unsigned long) ie->mlo_igtk_len[link_id], link_id);
                return -1;
        }
 
@@ -2330,7 +2330,7 @@ static int wpa_validate_mlo_ieee80211w_kdes(struct wpa_sm *sm,
            (unsigned int) wpa_cipher_key_len(sm->mgmt_group_cipher)) {
                wpa_msg(sm->ctx->msg_ctx, MSG_WARNING,
                        "RSN MLO: Invalid BIGTK KDE length %lu for link ID %u",
-                       (unsigned long) ie->mlo_bigtk_len, link_id);
+                       (unsigned long) ie->mlo_bigtk_len[link_id], link_id);
                return -1;
        }