To reduce our diff between our sources and our upline, sync up

with upline. Also making it easier to read.

Obtained from:	diffing base with ports
X-MFC-with:	r336203
This commit is contained in:
Cy Schubert 2018-07-20 02:17:19 +00:00
parent e581761876
commit 64987377c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336530

View File

@ -198,8 +198,8 @@ static void wnm_sleep_mode_exit_success(struct wpa_supplicant *wpa_s,
return;
}
while (ptr + 1 < end) {
if (ptr + 2 + ptr[1] > end) {
while (end - ptr > 1) {
if (2 + ptr[1] > end - ptr) {
wpa_printf(MSG_DEBUG, "WNM: Invalid Key Data element "
"length");
if (end > ptr) {