Skip to content

Commit

Permalink
clear password instead of free
Browse files Browse the repository at this point in the history
  • Loading branch information
cylgom committed Feb 3, 2020
1 parent 2892559 commit 8b5ad0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/login.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b5ad0b

Please sign in to comment.