From 8b5ad0b1b1f44ac5ccb068c25b6bffe870729d56 Mon Sep 17 00:00:00 2001 From: cylgom Date: Mon, 3 Feb 2020 08:39:15 +0100 Subject: [PATCH] clear password instead of free --- src/login.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/login.c b/src/login.c index 33ab66a3..57219aed 100644 --- a/src/login.c +++ b/src/login.c @@ -513,8 +513,7 @@ void auth( } // clear the credentials - input_text_free(password); - input_text(password, config.max_password_len); + input_text_clear(password); // get passwd structure struct passwd* pwd = getpwnam(login->text);