From da3ac980994aba2c366dba4f8540a4fff9ba23ef Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Mon, 15 Mar 2021 14:56:59 +0200 Subject: [PATCH] PASN: Fix setting frame and data lengths in AP mode PASN response Frame length and data length can exceed 256 so need to use size_t instead of u8. Signed-off-by: Ilan Peer --- 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 1c01241bc..2c3832960 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);