Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ static int monitor_gluon_node_parse_ie(const uint8_t *ie, size_t ie_len, void *d
return 0;
}

if (ie_len < 6 + 3) {
log_error("IE is too short.");
/* Need header + OUI + vendor type before inspecting vendor-specific fields */
if (ie_len < 6) {
log_debug("Vendor IE too short to inspect OUI.");
return 0;
}

Expand All @@ -375,6 +376,11 @@ static int monitor_gluon_node_parse_ie(const uint8_t *ie, size_t ie_len, void *d
return 0;
}

if (ie_len < 6 + 3) {
log_error("Gluon node IE is too short.");
return 0;
}

log_debug("Found gluon node IE length=%d", gluon_tlv_len);

/* Validate TLVs. We can re-use the ieee80211 helper for this */
Expand Down
Loading