aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-08-15 09:43:42 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-28 18:17:43 (GMT)
commit05283e7a6f71fb036957eb088b68e4f94ad833ac (patch)
tree9ba30df962aeb513179266744660c5a782006881
parent87b19c8d88389520433680143d9dbc83416fb0bf (diff)
downloadhostap-05283e7a6f71fb036957eb088b68e4f94ad833ac.zip
hostap-05283e7a6f71fb036957eb088b68e4f94ad833ac.tar.gz
hostap-05283e7a6f71fb036957eb088b68e4f94ad833ac.tar.bz2
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>
-rw-r--r--src/pae/ieee802_1x_kay.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c
index d29187d..88fb9ce 100644
--- a/src/pae/ieee802_1x_kay.c
+++ b/src/pae/ieee802_1x_kay.c
@@ -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;
}