From 5f636ea7dd5ebc4c173970507822ff337e4afc0b Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 18 Jul 2022 08:52:20 -0500 Subject: [PATCH] rtl8188eu: Change for loop counter to int to avoid wrap-around Signed-off-by: Larry Finger --- core/rtw_ieee80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rtw_ieee80211.c b/core/rtw_ieee80211.c index efc84d7..fe21ae2 100644 --- a/core/rtw_ieee80211.c +++ b/core/rtw_ieee80211.c @@ -657,7 +657,8 @@ int rtw_parse_wpa2_ie(u8 *rsn_ie, int rsn_ie_len, int *group_cipher, int *pairwi int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) { - u8 authmode, sec_idx, i; + u8 authmode, sec_idx; + int i; u8 wpa_oui[4] = {0x0, 0x50, 0xf2, 0x01}; uint cnt;