1
0
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:
Matias Fontanini
2013-09-04 16:34:24 -03:00
parent 15f2896811
commit de0ec914cc

View File

@@ -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)