summaryrefslogtreecommitdiff
path: root/src/cryptenroll/cryptenroll-password.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptenroll/cryptenroll-password.c')
-rw-r--r--src/cryptenroll/cryptenroll-password.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptenroll/cryptenroll-password.c b/src/cryptenroll/cryptenroll-password.c
index 0314831174..1775912d8e 100644
--- a/src/cryptenroll/cryptenroll-password.c
+++ b/src/cryptenroll/cryptenroll-password.c
@@ -2,6 +2,7 @@
#include "ask-password-api.h"
#include "cryptenroll-password.h"
+#include "env-util.h"
#include "escape.h"
#include "memory-util.h"
#include "pwquality-util.h"
@@ -27,8 +28,7 @@ int enroll_password(
if (!new_password)
return log_oom();
- string_erase(e);
- assert_se(unsetenv("NEWPASSWORD") == 0);
+ assert_se(unsetenv_erase("NEWPASSWORD") >= 0);
} else {
_cleanup_free_ char *disk_path = NULL;