[PATCH 01/15] AP: Fix setting frame and data lengths in PASN response
Ilan Peer
ilan.peer at intel.com
Mon Mar 15 12:56:59 GMT 2021
Frame length and data length can exceed 256 so need to use size_t
instead of u8.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
src/ap/ieee802_11.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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);
--
2.17.1
More information about the Hostap
mailing list