Skip to content
Commit 9f308616 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 49a68e0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment