mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 11:41:35 +01:00
do not parse Dot11 frame if FCS is wrong
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
This commit is contained in:
committed by
Matias Fontanini
parent
ec7e718e38
commit
28c8d393d6
@@ -132,6 +132,8 @@ RadioTap::RadioTap(const uint8_t *buffer, uint32_t total_sz)
|
||||
if((flags() & FCS) != 0) {
|
||||
check_size(total_sz, sizeof(uint32_t));
|
||||
total_sz -= sizeof(uint32_t);
|
||||
if((flags() & FAILED_FCS) !=0)
|
||||
throw malformed_packet();
|
||||
}
|
||||
|
||||
if(total_sz)
|
||||
|
||||
Reference in New Issue
Block a user