]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: More debug prints for RSNE modification for EAPOL-Key msg 2/4
authorJouni Malinen <j@w1.fi>
Tue, 24 Dec 2019 16:57:33 +0000 (18:57 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 24 Dec 2019 19:16:23 +0000 (21:16 +0200)
This buffer was getting corrupted, so add more details to make it
clearer what causes the corruption should this type of regression show
up again.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/wpa.c

index 504feaf2a5eb9d564abdfda12fdab037f459eea1..e9df04e117b2e4c81eddda63f6396d1a303d4413 100644 (file)
@@ -488,6 +488,8 @@ int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst,
        if (wpa_key_mgmt_ft(sm->key_mgmt)) {
                int res;
 
+               wpa_hexdump(MSG_DEBUG, "WPA: WPA IE before FT processing",
+                           wpa_ie, wpa_ie_len);
                /*
                 * Add PMKR1Name into RSN IE (PMKID-List) and add MDIE and
                 * FTIE from (Re)Association Response.
@@ -503,8 +505,14 @@ int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst,
                        os_free(rsn_ie_buf);
                        return -1;
                }
+               wpa_hexdump(MSG_DEBUG,
+                           "WPA: WPA IE after PMKID[PMKR1Name] addition into RSNE",
+                           rsn_ie_buf, wpa_ie_len);
 
                if (sm->assoc_resp_ies) {
+                       wpa_hexdump(MSG_DEBUG, "WPA: Add assoc_resp_ies",
+                                   sm->assoc_resp_ies,
+                                   sm->assoc_resp_ies_len);
                        os_memcpy(rsn_ie_buf + wpa_ie_len, sm->assoc_resp_ies,
                                  sm->assoc_resp_ies_len);
                        wpa_ie_len += sm->assoc_resp_ies_len;