mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-10 15:53:53 +00:00
[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. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
0c593d95e5
commit
73aea88a62
@ -2720,6 +2720,7 @@ void net80211_rx ( struct net80211_device *dev, struct io_buffer *iob,
|
||||
}
|
||||
free_iob ( iob );
|
||||
iob = niob;
|
||||
hdr = iob->data;
|
||||
}
|
||||
|
||||
dev->last_signal = signal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user