diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libwifi/parse/management/beacon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libwifi/parse/management/beacon.c b/src/libwifi/parse/management/beacon.c index 72246af..3d2feba 100644 --- a/src/libwifi/parse/management/beacon.c +++ b/src/libwifi/parse/management/beacon.c | |||
@@ -61,6 +61,7 @@ int libwifi_parse_beacon(struct libwifi_bss *bss, struct libwifi_frame *frame) { | |||
61 | } | 61 | } |
62 | 62 | ||
63 | // At least one Tagged Parameter must be present | 63 | // At least one Tagged Parameter must be present |
64 | // + 2 represents two additional bytes: Tag number and a single byte value | ||
64 | if (frame->len < (frame->header_len + sizeof(struct libwifi_beacon_fixed_parameters) + 2)) { | 65 | if (frame->len < (frame->header_len + sizeof(struct libwifi_beacon_fixed_parameters) + 2)) { |
65 | return -EINVAL; | 66 | return -EINVAL; |
66 | } | 67 | } |