projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b5555
)
nl80211: fix connect keys range check
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 13 Sep 2016 13:51:03 +0000
(15:51 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 13 Sep 2016 18:20:51 +0000
(20:20 +0200)
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>
net/wireless/nl80211.c
patch
|
blob
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index c11c1ef6daa720175eb697afce401ba01370ea7c..524f5d238c1452f1a154589cdd53ac8fc52cd08b 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-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)