Message ID | 20210315125713.23355-2-ilan.peer@intel.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Gvfke91c; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DzdSf4vfBz9tkb for <incoming@patchwork.ozlabs.org>; Tue, 16 Mar 2021 01:04:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GCXYByrklcBnx1FNxoUlVMrT0FYQ1fsZGpKuHMYWD70=; b=Gvfke91cMMFDxXnphp0Rj0lfs2 JCpuz0gZv2Il/djIC91TN+PkSjxSjUPxLrlhWh4dKXzIjxzZPjKXJ8oE0lptnz/wspHcLVKjkiUQl +6omnuNyQVb9BTfDQq5nE01vmxMW7a8tigiTcVPd/NqMEahF4dhtazkkJSnyxiJqoOwuwADlAHehB Xrw1ojlEUFijP7JOxxZFO4GoWS7M//3fjQUqHp+X+GGh8zZRJUCUWKcs0pLzUJPKhe95e8Nzwu/zl FxZzvmAkVt8Q/WQ3Z14Kyr11s4UyU/LA1IKs0YjEaX04/ZLPXyOrSUGtts7Eei/9Nn49iGyjtVeHG gdqr262g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLnoa-00G2a7-8p; Mon, 15 Mar 2021 14:03:24 +0000 Received: from mga02.intel.com ([134.134.136.20]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLmmj-00FtU1-8Q for hostap@lists.infradead.org; Mon, 15 Mar 2021 12:59:28 +0000 IronPort-SDR: kEBbc4mikoppaF3U/8vRR9F2ZCaqeuUu6xLZtGayKhp9Akh2egC7KG80xrz3LON38Fk8GMt4Dz CV8U6dzoobjQ== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="176210841" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="176210841" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:57:19 -0700 IronPort-SDR: 4tFAXG5/8fVoIy9FfOopAOexE6buM6PwIbQ+dHod/A950Vx5vjEt42cKjstVDpIT8tVX5/kWPe g11e98ED7BEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="378499616" Received: from jed01615.jer.intel.com ([10.12.217.51]) by fmsmga007.fm.intel.com with ESMTP; 15 Mar 2021 05:57:18 -0700 From: Ilan Peer <ilan.peer@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com> Subject: [PATCH 01/15] AP: Fix setting frame and data lengths in PASN response Date: Mon, 15 Mar 2021 14:56:59 +0200 Message-Id: <20210315125713.23355-2-ilan.peer@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210315125713.23355-1-ilan.peer@intel.com> References: <20210315125713.23355-1-ilan.peer@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_125925_970366_CC201041 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Frame length and data length can exceed 256 so need to use size_t instead of u8. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/ap/ieee802_11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [134.134.136.20 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [134.134.136.20 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add additional PASN features
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 1c01241bcf..2c3832960d 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2881,11 +2881,11 @@ static int handle_auth_pasn_resp(struct hostapd_data *hapd, { struct wpabuf *buf, *pubkey = NULL, *wrapped_data_buf = NULL; u8 mic[WPA_PASN_MAX_MIC_LEN]; - u8 mic_len, frame_len, data_len; + u8 mic_len; u8 *ptr; const u8 *frame, *data, *rsn_ie, *rsnxe_ie; u8 *data_buf = NULL; - size_t rsn_ie_len; + size_t rsn_ie_len, frame_len, data_len; int ret; wpa_printf(MSG_DEBUG, "PASN: Building frame 2: status=%u", status);
Frame length and data length can exceed 256 so need to use size_t instead of u8. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/ap/ieee802_11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)