3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

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

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