mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
homework: let's simply some code via erase_and_free()
This commit is contained in:
parent
48f462547d
commit
fc4941d61c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user