commit | 9f308616b6176b6dc470e6eb3569a09b100a823a | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Thu Feb 07 23:39:19 2019 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Fri Feb 08 13:51:50 2019 +0100 |
tree | 58e9c9b69fed05c19470df6fc362678c413fc04a | |
parent | 49a68e0d88890060a2b9b6c6ad1ec53eb50abccf [diff] |
nl80211: use for_each_element() in validate_ie_attr() This makes for much simpler code, simply walk through all the elements and check that the last one found ends with the end of the data. This works because if any element is malformed the walk is aborted, we end up with a mismatch. Signed-off-by: Johannes Berg <johannes.berg@intel.com>