From e519d1139a89cbf376c5c43baf8141c63f4ea4e5 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 8 Oct 2021 12:27:46 -0500 Subject: [PATCH] eapol: Remove unneeded assignment gtk and igtk are already initialized to NULL at declaration time. There's no need to set them to NULL here. --- src/eapol.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/eapol.c b/src/eapol.c index da5a7702..94673ef6 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -1852,8 +1852,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm, gtk_key_index = bit_field(gtk[0], 0, 2); gtk += 2; gtk_len -= 2; - } else - gtk = NULL; + } if (hs->mfp) { igtk = handshake_util_find_igtk_kde(decrypted_key_data, @@ -1867,8 +1866,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm, igtk_key_index = l_get_le16(igtk); igtk += 2; igtk_len -= 2; - } else - igtk = NULL; + } key_id = handshake_util_find_kde(HANDSHAKE_KDE_KEY_ID, decrypted_key_data,