From 97cd085bb2905ad1e781981ac22e69ac8a1daf7f Mon Sep 17 00:00:00 2001 From: Mathy Date: Sun, 16 Oct 2022 17:30:30 +0200 Subject: [PATCH] fragattacks: fix for compilation on old platforms --- wpa_supplicant/ctrl_iface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 40d7a5eb0..1a429d561 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -9808,6 +9808,7 @@ static int wpas_ctrl_set_assoc_resp_ies(struct wpa_supplicant *wpa_s, const char struct wpa_sm *sm = wpa_s->wpa; size_t len; u8 *buf; + int i; len = os_strlen(cmd); if (len & 1) return -1; @@ -9823,7 +9824,7 @@ static int wpas_ctrl_set_assoc_resp_ies(struct wpa_supplicant *wpa_s, const char } printf("\n\nCurrent value = "); - for (int i = 0; i < sm->assoc_resp_ies_len; ++i) + for (i = 0; i < sm->assoc_resp_ies_len; ++i) printf("%02X ", sm->assoc_resp_ies[i]); printf("\n");