1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

Sept: improve edge case cleanup a little.

This commit is contained in:
Michael Scire 2019-02-20 23:25:31 -08:00
parent 1a63078c32
commit 771039e6a7

View file

@ -63,6 +63,11 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
se_set_in_context_save_mode(false);
/* Clear all keyslots. */
for (size_t k = 0; k < 0x10; k++) {
clear_aes_keyslot(k);
}
set_has_rebooted(true);
reboot_to_self();
} else {