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:
Jouni Malinen 2018-11-30 21:07:19 +02:00 committed by Jouni Malinen
parent 10c83475b8
commit ff50101139

View File

@ -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;
}