From: Johannes Berg <johannes@sipsolutions.net>
To: amit.khatri@samsung.com,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Cc: Nitin Jhanwar <nitin.j@samsung.com>,
AMIT KUMAR JAISWAL <amit.jaiswal@samsung.com>
Subject: Re: [PATCH] IW: Zero or Uninitialized value of keylen passing
Date: Mon, 13 Nov 2017 10:27:20 +0100 [thread overview]
Message-ID: <1510565240.30497.7.camel@sipsolutions.net> (raw)
In-Reply-To: <20171102112839epcms5p42b2f4fa5e261fb5ec26237a17fe08655@epcms5p4>
On Thu, 2017-11-02 at 11:28 +0000, Amit Khatri wrote:
> From b755c8ee282abbd0008e9e7241c457662c90f2c3 Mon Sep 17 00:00:00 2001
> From: Amit Khatri <amit.khatri@samsung.com>
> Date: Thu, 2 Nov 2017 15:55:16 +0530
> Subject: [PATCH] IW: Zero or Uninitialized value of keylen passing
>
> In case of hexadeciaml keydata, keylen is not gettig updated
> and passing in NLA_PUT(msg, NL80211_KEY_DATA, keylen, keydata)
> as zero (becasue of local variable).
>
> This patch initilalize keylen variable in case of hexkey data.
Uh. Please re-read the code. I'll selectively quote for you (without
your changes):
> case 10:
> keydata = hex2bin(keydata, keybuf);
> case 5:
> NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC01);
> keylen = 5;
> break;
johannes
prev parent reply other threads:[~2017-11-13 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20171102112839epcms5p42b2f4fa5e261fb5ec26237a17fe08655@epcms5p4>
2017-11-02 11:28 ` [PATCH] IW: Zero or Uninitialized value of keylen passing Amit Khatri
2017-11-13 9:27 ` Johannes Berg [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=1510565240.30497.7.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=amit.jaiswal@samsung.com \
--cc=amit.khatri@samsung.com \
--cc=linux-wireless@vger.kernel.org \
--cc=nitin.j@samsung.com \
/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.