mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
nl80211: fix connect keys range check
Only key index 0-3 should be accepted, 4/5 are for IGTKs and cannot be used as connect keys. Fix the range checking to not allow such erroneous configurations. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
b6b5555bc8
commit
42ee231cd1
1 changed files with 1 additions and 1 deletions
|
@ -866,7 +866,7 @@ nl80211_parse_connkeys(struct cfg80211_registered_device *rdev,
|
|||
err = -EINVAL;
|
||||
if (!parse.p.key)
|
||||
goto error;
|
||||
if (parse.idx < 0 || parse.idx > 4)
|
||||
if (parse.idx < 0 || parse.idx > 3)
|
||||
goto error;
|
||||
if (parse.def) {
|
||||
if (def)
|
||||
|
|
Loading…
Reference in a new issue