[802.11] Fix a use-after-free
authorJoshua Oreman <oremanj@rwcr.net>
Fri, 30 Jul 2010 03:13:31 +0000 (20:13 -0700)
committerJoshua Oreman <oremanj@rwcr.net>
Fri, 30 Jul 2010 03:13:31 +0000 (20:13 -0700)
commit855efb6b9e1d64467a64be83c0196345299a5727
treea16bba569cf4bdb4fc14bf06263467b1d6bec2b6
parent19f011a2625233571506fdfadeccd9d165369aa8
[802.11] Fix a use-after-free

When we received an encrypted packet, after replacing it with its decrypted
version and freeing the encrypted original, we would continue to look at
the header of the now-freed original packet. Fix by moving the header pointer
to point at the decrypted packet instead.
src/net/80211/net80211.c