mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[PATCH] sotftmac: fix a slab corruption in WEP restricted key association
Fix a slab corruption in ieee80211softmac_auth(). The size of a buffer was miscomputed. see http://bugzilla.kernel.org/show_bug.cgi?id=7245 Acked-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Laurent Riffard <laurent.riffard@free.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5bb85f1808
commit
6684e59aa3
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ ieee80211softmac_auth(struct ieee80211_auth **pkt,
|
|||
2 + /* Auth Transaction Seq */
|
||||
2 + /* Status Code */
|
||||
/* Challenge Text IE */
|
||||
is_shared_response ? 0 : 1 + 1 + net->challenge_len
|
||||
(is_shared_response ? 1 + 1 + net->challenge_len : 0)
|
||||
);
|
||||
if (unlikely((*pkt) == NULL))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue