aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-12-30 23:09:02 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-30 23:09:02 (GMT)
commita1417c7f96d146b3284936ceeeac22c41d6f2545 (patch)
tree92e8fb864c7afb8e2529e24768ba9a3420cbb8d9
parentf9052d6ea5d5913d121e2604c11eefbf2fae39e0 (diff)
downloadhostap-a1417c7f96d146b3284936ceeeac22c41d6f2545.zip
hostap-a1417c7f96d146b3284936ceeeac22c41d6f2545.tar.gz
hostap-a1417c7f96d146b3284936ceeeac22c41d6f2545.tar.bz2
mka: Log MI update failure in debug log
One of the reset_participant_mi() callers did not log the error. Make this more consistent with the other callers. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/pae/ieee802_1x_kay.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c
index a16f3d3..c9948b7 100644
--- a/src/pae/ieee802_1x_kay.c
+++ b/src/pae/ieee802_1x_kay.c
@@ -1422,7 +1422,12 @@ ieee802_1x_mka_decode_sak_use_body(
}
if (!found) {
wpa_printf(MSG_INFO, "KaY: Latest key is invalid");
- reset_participant_mi(participant);
+ if (!reset_participant_mi(participant))
+ wpa_printf(MSG_DEBUG, "KaY: Could not update mi");
+ else
+ wpa_printf(MSG_DEBUG,
+ "KaY: Selected a new random MI: %s",
+ mi_txt(participant->mi));
return -1;
}
if (os_memcmp(participant->lki.mi, body->lsrv_mi,