aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/ieee802_11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ieee802_11_common.c')
-rw-r--r--src/common/ieee802_11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index 922dea0..85d6ca8 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -270,8 +270,9 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
elems->ht_capabilities = pos;
break;
case WLAN_EID_HT_OPERATION:
+ if (elen < sizeof(struct ieee80211_ht_operation))
+ break;
elems->ht_operation = pos;
- elems->ht_operation_len = elen;
break;
case WLAN_EID_MESH_CONFIG:
elems->mesh_config = pos;