sae: remove unneeded NULL pointer check

The frame was already validated, and mmpdu_body will never return
a NULL pointer.
This commit is contained in:
James Prestwood 2019-10-21 15:02:50 -07:00 committed by Denis Kenzior
parent 27d698a0c0
commit a1189d64b1
1 changed files with 0 additions and 5 deletions

View File

@ -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),