From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH 2/5] ap: Fix cleanup on ap_parse_new_station_ies errors
Date: Fri, 29 Jan 2021 20:11:24 -0600 [thread overview]
Message-ID: <1dddf52f-579a-eed7-9754-c12fc2afee83@gmail.com> (raw)
In-Reply-To: <20210129232740.27393-2-andrew.zaborowski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
Hi Andrew,
On 1/29/21 5:27 PM, Andrew Zaborowski wrote:
> ---
> src/ap.c | 25 ++++++++++++++++---------
> 1 file changed, 16 insertions(+), 9 deletions(-)
>
> diff --git a/src/ap.c b/src/ap.c
> index c4715696..1e028122 100644
> --- a/src/ap.c
> +++ b/src/ap.c
> @@ -2211,14 +2211,15 @@ static bool ap_parse_new_station_ies(const void *data, uint16_t len,
> while (ie_tlv_iter_next(&iter)) {
> switch (ie_tlv_iter_get_tag(&iter)) {
> case IE_TYPE_RSN:
> - if (ie_parse_rsne(&iter, NULL) < 0)
> + if (rsn || ie_parse_rsne(&iter, NULL) < 0)
This may be going beyond being simply paranoid since the kernel is giving these
messages to us, but ok...
> goto parse_error;
>
> rsn = l_memdup(ie_tlv_iter_get_data(&iter) - 2,
> ie_tlv_iter_get_length(&iter) + 2);
> break;
> case IE_TYPE_EXTENDED_SUPPORTED_RATES:
> - if (ap_parse_supported_rates(&iter, &rates) < 0)
> + if (rates || ap_parse_supported_rates(&iter, &rates) <
> + 0)
> goto parse_error;
>
> break;
Applied, thanks.
Regards,
-Denis
next prev parent reply other threads:[~2021-01-30 2:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-29 23:27 [PATCH 1/5] ap: Set the group cipher when sending START_AP Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 2/5] ap: Fix cleanup on ap_parse_new_station_ies errors Andrew Zaborowski
2021-01-30 2:11 ` Denis Kenzior [this message]
2021-01-30 11:39 ` Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 3/5] eapol: Remove assumption of single cipher in authenticator IE Andrew Zaborowski
2021-01-30 2:28 ` Denis Kenzior
2021-01-30 11:35 ` Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 4/5] ap: Allow setting multiple ciphers in ap->ciphers Andrew Zaborowski
2021-01-29 23:27 ` [PATCH 5/5] unit: Use hs_override_pairwise_cipher in eapol authenticator tests Andrew Zaborowski
2021-01-30 2:06 ` [PATCH 1/5] ap: Set the group cipher when sending START_AP 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=1dddf52f-579a-eed7-9754-c12fc2afee83@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.