mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
mka: Simplify ieee802_1x_mka_dist_sak_body_present()
No need for an if statement to figure out Boolean return value. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
This commit is contained in:
parent
87b19c8d88
commit
05283e7a6f
@ -1395,10 +1395,7 @@ static Boolean
|
||||
ieee802_1x_mka_dist_sak_body_present(
|
||||
struct ieee802_1x_mka_participant *participant)
|
||||
{
|
||||
if (!participant->to_dist_sak || !participant->new_key)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return participant->to_dist_sak && participant->new_key;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user