diff options
Diffstat (limited to 'libbb/correct_password.c')
-rw-r--r-- | libbb/correct_password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c index 96bb10e0b..a4ded8b5f 100644 --- a/libbb/correct_password.c +++ b/libbb/correct_password.c | |||
@@ -71,7 +71,7 @@ int correct_password(const struct passwd *pw) | |||
71 | if (!unencrypted) { | 71 | if (!unencrypted) { |
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |
74 | encrypted = crypt(unencrypted, correct); | 74 | encrypted = pw_encrypt(unencrypted, correct, 1); |
75 | memset(unencrypted, 0, strlen(unencrypted)); | 75 | memset(unencrypted, 0, strlen(unencrypted)); |
76 | return strcmp(encrypted, correct) == 0; | 76 | return strcmp(encrypted, correct) == 0; |
77 | } | 77 | } |