1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix buffer length check issue on Dot11QosData

Fixes #167
This commit is contained in:
Matias Fontanini
2016-10-18 07:24:11 -07:00
parent 2847039ffe
commit 22e569d430

View File

@@ -136,7 +136,7 @@ Dot11QoSData::Dot11QoSData(const uint8_t* buffer, uint32_t total_sz)
InputMemoryStream stream(buffer, total_sz); InputMemoryStream stream(buffer, total_sz);
stream.skip(Dot11Data::header_size()); stream.skip(Dot11Data::header_size());
stream.read(qos_control_); stream.read(qos_control_);
if (total_sz) { if (stream) {
// If the wep bit is on, then just use a RawPDU // If the wep bit is on, then just use a RawPDU
if (wep()) { if (wep()) {
inner_pdu(new Tins::RawPDU(stream.pointer(), stream.size())); inner_pdu(new Tins::RawPDU(stream.pointer(), stream.size()));