mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 20:44:26 +01:00
Fixed bug in RadioTap. The flags field was being used even if it was not present.
This commit is contained in:
@@ -135,7 +135,7 @@ RadioTap::RadioTap(const uint8_t *buffer, uint32_t total_sz)
|
||||
total_sz -= Endian::le_to_host(_radio.it_len);
|
||||
buffer += radiotap_hdr_size;
|
||||
|
||||
if((flags() & FCS) != 0) {
|
||||
if(_radio.flags && (flags() & FCS) != 0) {
|
||||
check_size(total_sz, sizeof(uint32_t));
|
||||
total_sz -= sizeof(uint32_t);
|
||||
if((flags() & FAILED_FCS) !=0)
|
||||
|
||||
Reference in New Issue
Block a user