Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH] netdev: fix bug setting OWE IE length
Date: Thu, 03 Feb 2022 09:24:18 -0800	[thread overview]
Message-ID: <20220203172418.87777-1-prestwoj@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

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(-)

diff --git a/src/netdev.c b/src/netdev.c
index 4dc9ce94..cda0c7fc 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -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;
 
-- 
2.31.1

             reply	other threads:[~2022-02-03 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-03 17:24 James Prestwood [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-03 17:41 [PATCH] netdev: fix bug setting OWE IE length Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220203172418.87777-1-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox