mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-10-15 10:07:49 +00:00
Add check for psta->aid out of bounds.
This commit is contained in:
1 parent
bc1d897c54
commit
b6bd52d317
1 file changed
+4
@@ -775,6 +775,10 @@ u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta)
|
||||
pstapriv->sta_aid[psta->cmn.aid - 1] = NULL;
|
||||
psta->cmn.aid = 0;
|
||||
}
|
||||
if (psta->aid > 31) {
|
||||
pr_err("***** psta->aid (%d) out of bounds\n", psta->aid);
|
||||
return _FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NATIVEAP_MLME */
|
||||
|
||||
Reference in new issue
Block a user