From 8de07357fd05cd16ae36dcfa00e49d6881ea8e1e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 12 Jul 2021 18:13:14 -0500 Subject: [PATCH] fils: mmpdu_body cannot fail --- src/fils.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/fils.c b/src/fils.c index bfb885ac..047ce66c 100644 --- a/src/fils.c +++ b/src/fils.c @@ -357,11 +357,6 @@ static int fils_rx_authenticate(struct auth_proto *driver, const uint8_t *frame, auth = mmpdu_body(hdr); - if (!auth) { - l_debug("Auth frame body did not validate"); - return -EBADMSG; - } - if (auth->status != 0) { l_debug("invalid status %u", auth->status); return L_LE16_TO_CPU(auth->status); @@ -482,11 +477,6 @@ static int fils_rx_associate(struct auth_proto *driver, const uint8_t *frame, assoc = mmpdu_body(hdr); - if (!assoc) { - l_debug("Assoc frame body did not validate"); - return -EBADMSG; - } - if (assoc->status_code != 0) return L_CPU_TO_LE16(assoc->status_code);