Blame SOURCES/macsec-0033-mka-Fix-an-incorrect-update-of-participant-to_use_sa.patch

9c84ec
From 7faf403f9fb39fea9a0545025cc284ef05e022a7 Mon Sep 17 00:00:00 2001
9c84ec
Message-Id: <7faf403f9fb39fea9a0545025cc284ef05e022a7.1488376602.git.dcaratti@redhat.com>
9c84ec
From: Badrish Adiga H R <badrish.adigahr@gmail.com>
9c84ec
Date: Fri, 6 Jan 2017 17:47:51 +0530
9c84ec
Subject: [PATCH] mka: Fix an incorrect update of participant->to_use_sak
9c84ec
9c84ec
API ieee802_1x_mka_decode_dist_sak_body() wrongly puts
9c84ec
participant->to_use_sak to TRUE, if Distributed SAK Parameter Set of
9c84ec
length 0 is received. In MACsec PSK mode, this stale incorrect value can
9c84ec
create problems while re-establishing CA. In MACsec PSK mode, CA goes
9c84ec
down if interface goes down and ideally we should be able to
9c84ec
re-establish the CA once interface comes up.
9c84ec
9c84ec
Signed-off-by: Badrish Adiga H R <badrish.adigahr@gmail.com>
9c84ec
---
9c84ec
 src/pae/ieee802_1x_kay.c | 2 +-
9c84ec
 1 file changed, 1 insertion(+), 1 deletion(-)
9c84ec
9c84ec
diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c
9c84ec
index 1004b32..79a6878 100644
9c84ec
--- a/src/pae/ieee802_1x_kay.c
9c84ec
+++ b/src/pae/ieee802_1x_kay.c
9c84ec
@@ -1559,7 +1559,7 @@ ieee802_1x_mka_decode_dist_sak_body(
9c84ec
 		ieee802_1x_cp_connect_authenticated(kay->cp);
9c84ec
 		ieee802_1x_cp_sm_step(kay->cp);
9c84ec
 		wpa_printf(MSG_WARNING, "KaY:The Key server advise no MACsec");
9c84ec
-		participant->to_use_sak = TRUE;
9c84ec
+		participant->to_use_sak = FALSE;
9c84ec
 		return 0;
9c84ec
 	}
9c84ec
 
9c84ec
-- 
9c84ec
2.7.4
9c84ec