mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +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:
parent
27d698a0c0
commit
a1189d64b1
@ -1024,11 +1024,6 @@ static int sae_rx_authenticate(struct auth_proto *ap,
|
|||||||
|
|
||||||
auth = mmpdu_body(hdr);
|
auth = mmpdu_body(hdr);
|
||||||
|
|
||||||
if (!auth) {
|
|
||||||
l_debug("Auth frame body did not validate");
|
|
||||||
goto reject;
|
|
||||||
}
|
|
||||||
|
|
||||||
len -= mmpdu_header_len(hdr);
|
len -= mmpdu_header_len(hdr);
|
||||||
|
|
||||||
ret = sae_verify_packet(sm, L_LE16_TO_CPU(auth->transaction_sequence),
|
ret = sae_verify_packet(sm, L_LE16_TO_CPU(auth->transaction_sequence),
|
||||||
|
Loading…
Reference in New Issue
Block a user