You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4d9c313f2a
Documentation of the return values for wpa_parse_vendor_specific() and wpa_parse_generic() were not accurate and the parsing results from these were not really handled appropriately. There is no point in calling wpa_parse_vendor_specific() if wpa_parse_generic() recognizes a KDE. Not that this would break anything in practice, but still, it looks confusing. The part about handling wpa_parse_vendor_specific() return value can, at least in theory, break some cases where an unexpectedly short KDE/vendor specific element were present and something would need to be recognized after it. That does not really happen with any standard compliant implementation and this is unlikely to cause any real harm, but it is clearer to handle this more appropriately even for any theoretical case, including misbehavior of a peer device. Instead of stopping parsing on too short vendor specific element, continue parsing the following KDEs/IEs. Skip the wpa_parse_vendor_specific() call when a KDE has been recognized. Also fix the return value documentation for wpa_parse_generic() and remove the useless return value from wpa_parse_vendor_specific(). Signed-off-by: Jouni Malinen <jouni@codeaurora.org> |
4 years ago | |
---|---|---|
.. | ||
ap | 4 years ago | |
common | 4 years ago | |
crypto | 4 years ago | |
drivers | 4 years ago | |
eap_common | 5 years ago | |
eap_peer | 5 years ago | |
eap_server | 4 years ago | |
eapol_auth | 4 years ago | |
eapol_supp | 4 years ago | |
fst | 5 years ago | |
l2_packet | 4 years ago | |
p2p | 4 years ago | |
pae | 5 years ago | |
radius | 4 years ago | |
rsn_supp | 4 years ago | |
tls | 4 years ago | |
utils | 4 years ago | |
wps | 4 years ago | |
Makefile | 9 years ago | |
lib.rules | 5 years ago |