RSNO: Protect wpa_ie_buf3 from reuse explicitly

Use else-if check for better clarity regarding usage of wpa_ie_buf3 to
make it explicit that memory is allocated for this pointer only once.

Signed-off-by: Adil Saeed Musthafa <quic_adilm@quicinc.com>
This commit is contained in:
Adil Saeed Musthafa
2024-07-25 12:51:07 -07:00
committed by Kapil Gupta
parent b347db7af7
commit c5161c4012

View File

@@ -1916,8 +1916,7 @@ SM_STATE(WPA_PTK, PTKINITNEGOTIATING)
wpa_ie_len = pos - wpa_ie_buf3;
wpa_hexdump(MSG_DEBUG, "EAPOL-Key msg 3/4 IEs after edits",
wpa_ie, wpa_ie_len);
}
if (conf->rsn_override_key_mgmt && !sm->rsn_override) {
} else if (conf->rsn_override_key_mgmt && !sm->rsn_override) {
u8 *ie;
size_t ie_len;
u32 ids[] = {