]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mka: Log MI update failure in debug log
authorJouni Malinen <j@w1.fi>
Sun, 30 Dec 2018 23:09:02 +0000 (01:09 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 30 Dec 2018 23:09:02 +0000 (01:09 +0200)
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>
src/pae/ieee802_1x_kay.c

index a16f3d397a03c8e00245f09c544cc9cdfcb24261..c9948b7f6ee114a3abf0b84151a2d9a67068562b 100644 (file)
@@ -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,