提交 6684e59a 编写于 作者: L Laurent Riffard 提交者: John W. Linville

[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=7245Acked-by: NDaniel Drake <dsd@gentoo.org>
Signed-off-by: NLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5bb85f18
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册