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:
parent
4adf234cd3
commit
376adfea8d
1 changed files with 3 additions and 3 deletions
|
@ -4713,9 +4713,9 @@ 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 || conf->rsn_override_key_mgmt_2) &&
|
||||
!sm->rsn_override && !sm->rsn_override_2) {
|
||||
} else if ((conf->rsn_override_key_mgmt ||
|
||||
conf->rsn_override_key_mgmt_2) &&
|
||||
!sm->rsn_override && !sm->rsn_override_2) {
|
||||
u8 *ie;
|
||||
size_t ie_len;
|
||||
u32 ids[] = {
|
||||
|
|
Loading…
Reference in a new issue