]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Debug print extra response data
authorJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 22:45:26 +0000 (01:45 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 09:38:48 +0000 (12:38 +0300)
This shows any extra data from FT response and also avoids a static
analyzer warning on dead increment.

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

index e356cea48bf7c34d09f82b7f582c2f7fdcc56dee..8a6ca71c34b5bce8eee9e674b2c2d6140c161be9 100644 (file)
@@ -1689,6 +1689,11 @@ int wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr,
                return -1;
        }
 
+       if (end > pos) {
+               wpa_hexdump(MSG_DEBUG, "FT: Ignore extra data in end",
+                           pos, end - pos);
+       }
+
        return 0;
 }