mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
FT: Check session_timeout pointer consistently
Avoid smatch warning on this even thought the only caller of the function uses a non-NULL pointer in all cases. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
10c83475b8
commit
ff50101139
@ -1451,7 +1451,7 @@ static int wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth,
|
||||
now.sec;
|
||||
else if (session_timeout && r1->session_timeout)
|
||||
*session_timeout = 1;
|
||||
else
|
||||
else if (session_timeout)
|
||||
*session_timeout = 0;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user