From ff501011391ce6447a21c2c795d4d8610ab653a7 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 30 Nov 2018 21:07:19 +0200 Subject: [PATCH] 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 --- src/ap/wpa_auth_ft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }