Skip to contentSkip to conversation

netdev: fix bug setting OWE IE length

PATCH Applied James Prestwood 2 participants 2 messages Feb 3, 2022

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH 1/1 netdev: fix bug setting OWE IE length

The length was being set to whatever the last nl80211 attribute was, not the length for the RESP_IE iteration.

---
 src/netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/netdev.c +1 -1
index 4dc9ce94..cda0c7fc 100644
@@ -2830,7 +2830,7 @@ process_resp_ies:
 					continue;
 
 				owe_dh = data;
-				owe_dh_len = len;
+				owe_dh_len = ie_tlv_iter_get_length(&iter);
 
 				break;
 
Signature · 1 line
2.31.1
Applied
#1 lore raw

Hi James,

Quoted 6 lines · James Prestwood

The length was being set to whatever the last nl80211 attribute was, not the length for the RESP_IE iteration.

---
  src/netdev.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis