From de0ec914cccb44d593c0dc929e0d7723257e3b48 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Wed, 4 Sep 2013 16:34:24 -0300 Subject: [PATCH] Fixed bug in RadioTap. The flags field was being used even if it was not present. --- src/radiotap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radiotap.cpp b/src/radiotap.cpp index 52ec033..2a8868c 100644 --- a/src/radiotap.cpp +++ b/src/radiotap.cpp @@ -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)