mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
cryptenroll: use erase_and_free() at two more places
This commit is contained in:
parent
4314abf6d4
commit
a3b46c6bf6
@ -64,9 +64,9 @@ static int search_policy_hash(
|
||||
}
|
||||
|
||||
static int get_pin(char **ret_pin_str, TPM2Flags *ret_flags) {
|
||||
_cleanup_free_ char *pin_str = NULL;
|
||||
int r;
|
||||
_cleanup_(erase_and_freep) char *pin_str = NULL;
|
||||
TPM2Flags flags = 0;
|
||||
int r;
|
||||
|
||||
assert(ret_pin_str);
|
||||
assert(ret_flags);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user