mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 11:00:58 +02:00
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:
committed by
Kapil Gupta
parent
b347db7af7
commit
c5161c4012
@@ -1916,8 +1916,7 @@ SM_STATE(WPA_PTK, PTKINITNEGOTIATING)
|
|||||||
wpa_ie_len = pos - wpa_ie_buf3;
|
wpa_ie_len = pos - wpa_ie_buf3;
|
||||||
wpa_hexdump(MSG_DEBUG, "EAPOL-Key msg 3/4 IEs after edits",
|
wpa_hexdump(MSG_DEBUG, "EAPOL-Key msg 3/4 IEs after edits",
|
||||||
wpa_ie, wpa_ie_len);
|
wpa_ie, wpa_ie_len);
|
||||||
}
|
} else if (conf->rsn_override_key_mgmt && !sm->rsn_override) {
|
||||||
if (conf->rsn_override_key_mgmt && !sm->rsn_override) {
|
|
||||||
u8 *ie;
|
u8 *ie;
|
||||||
size_t ie_len;
|
size_t ie_len;
|
||||||
u32 ids[] = {
|
u32 ids[] = {
|
||||||
|
Reference in New Issue
Block a user