3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

eapol: Remove unneeded initialization

oci variable is always set during handshake_util_find_kde.  Do not
initialize it unnecessarily to help the compiler / static analysis find
potential issues.
This commit is contained in:
Denis Kenzior 2021-10-08 12:30:34 -05:00
parent e519d1139a
commit a584396147

View File

@ -1670,7 +1670,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm,
size_t transition_disable_len; size_t transition_disable_len;
uint8_t gtk_key_index; uint8_t gtk_key_index;
uint16_t igtk_key_index; uint16_t igtk_key_index;
const uint8_t *oci = NULL; const uint8_t *oci;
size_t oci_len; size_t oci_len;
int r; int r;
@ -2079,7 +2079,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm,
const uint8_t *igtk; const uint8_t *igtk;
size_t igtk_len; size_t igtk_len;
uint16_t igtk_key_index; uint16_t igtk_key_index;
const uint8_t *oci = NULL; const uint8_t *oci;
size_t oci_len; size_t oci_len;
uint8_t ies[1024]; uint8_t ies[1024];
size_t ies_len = 0; size_t ies_len = 0;