From a1189d64b1d2e46a234837610b7605cd58bd57f5 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 21 Oct 2019 15:02:50 -0700 Subject: [PATCH] sae: remove unneeded NULL pointer check The frame was already validated, and mmpdu_body will never return a NULL pointer. --- src/sae.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sae.c b/src/sae.c index cc920c9a..fadf4ce2 100644 --- a/src/sae.c +++ b/src/sae.c @@ -1024,11 +1024,6 @@ static int sae_rx_authenticate(struct auth_proto *ap, auth = mmpdu_body(hdr); - if (!auth) { - l_debug("Auth frame body did not validate"); - goto reject; - } - len -= mmpdu_header_len(hdr); ret = sae_verify_packet(sm, L_LE16_TO_CPU(auth->transaction_sequence),