All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH] eapol: do not parse RSN for WPA1 in 1 of 4
Date: Thu, 17 Oct 2019 18:48:51 -0500	[thread overview]
Message-ID: <53ce7dee-5075-02b3-61e4-e5d472e17767@gmail.com> (raw)
In-Reply-To: <20191017234316.4271-1-prestwoj@gmail.com>

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

Hi James,

On 10/17/19 6:43 PM, James Prestwood wrote:
> A recent change checked the return value of ie_parse_rsne_from_data
> inside the ptk 1/4 handler. This seemed safe, but actually caused
> the eapol unit test to fail.
> 
> The reason was because eapol was parsing the IEs assuming they were
> an RSN, when they could be a WPA IE (WPA1 not WPA2). The WPA case
> does not end up using the rsn_info at all, so having rsn_info
> uninitialized did not pose a problem. After adding the return value
> check it was found this fails every time for WPA1.
> 
> Since the rsn_info is not needed for WPA1 we can only do the RSN
> parse for WPA2 and leave rsn_info uninitialized.
> ---
>   src/eapol.c | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 

applied, thanks.

Regards,
-Denis

      reply	other threads:[~2019-10-17 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17 23:43 [PATCH] eapol: do not parse RSN for WPA1 in 1 of 4 James Prestwood
2019-10-17 23:48 ` Denis Kenzior [this message]

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=53ce7dee-5075-02b3-61e4-e5d472e17767@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.