From: Jouni Malinen Date: Fri, 30 Nov 2018 19:07:19 +0000 (+0200) Subject: FT: Check session_timeout pointer consistently X-Git-Tag: hostap_2_7~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff501011391ce6447a21c2c795d4d8610ab653a7;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c index e8d46ab0d..f6792e00f 100644 --- a/src/ap/wpa_auth_ft.c +++ b/src/ap/wpa_auth_ft.c @@ -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; }