]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] softmac: fix a slab corruption in WEP restricted key association
authorLaurent Riffard <laurent.riffard@free.fr>
Wed, 11 Oct 2006 22:17:36 +0000 (00:17 +0200)
committerChris Wright <chrisw@sous-sol.org>
Sat, 2 Dec 2006 00:12:37 +0000 (16:12 -0800)
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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ieee80211/softmac/ieee80211softmac_io.c

index 6ae5a1dc79564742f1bfd024ae9e2b37058fb4c0..3b67d197691409fac1ca2c19b77c123425d3d33a 100644 (file)
@@ -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;