[802.11] Fix a use-after-free
[people/stefanha/gpxe.git] / src / net / 80211 / net80211.c
index 87c7b3d..b07513e 100644 (file)
@@ -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;