1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

homework: let's simply some code via erase_and_free()

This commit is contained in:
Lennart Poettering 2021-10-15 18:00:38 +02:00
parent 48f462547d
commit fc4941d61c

View File

@ -359,8 +359,7 @@ int home_setup_undo(HomeSetup *setup) {
setup->crypt_device = NULL;
}
explicit_bzero_safe(setup->volume_key, setup->volume_key_size);
setup->volume_key = mfree(setup->volume_key);
setup->volume_key = erase_and_free(setup->volume_key);
setup->volume_key_size = 0;
if (setup->do_drop_caches)