diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-01 11:26:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-11-01 15:19:10 +0100 |
commit | a3b46c6bf6ed2d0019e8f27531efd5998d71139d (patch) | |
tree | 2c92ed5b017b846a2b805b88604eef3e0b80428f /src/cryptsetup | |
parent | sd-netlink: res_id is 16bit but serial is 32bit (diff) | |
download | systemd-a3b46c6bf6ed2d0019e8f27531efd5998d71139d.tar.xz systemd-a3b46c6bf6ed2d0019e8f27531efd5998d71139d.zip |
cryptenroll: use erase_and_free() at two more places
Diffstat (limited to 'src/cryptsetup')
-rw-r--r-- | src/cryptsetup/cryptsetup-tpm2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-tpm2.c b/src/cryptsetup/cryptsetup-tpm2.c index 036f3d3a00..41dca776d1 100644 --- a/src/cryptsetup/cryptsetup-tpm2.c +++ b/src/cryptsetup/cryptsetup-tpm2.c @@ -13,7 +13,7 @@ #include "tpm2-util.h" static int get_pin(usec_t until, AskPasswordFlags ask_password_flags, bool headless, char **ret_pin_str) { - _cleanup_free_ char *pin_str = NULL; + _cleanup_(erase_and_freep) char *pin_str = NULL; _cleanup_strv_free_erase_ char **pin = NULL; int r; |