--- passwd.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/passwd.c b/passwd.c index 52b70a8..0b54537 100644 --- a/passwd.c +++ b/passwd.c _AT_@ -235,11 +235,13 @@ newpass: eprintf("getpass:"); if (inpass[0] == '\0') eprintf("no password supplied\n"); - p = crypt(inpass, prevhash); - if (!p) - eprintf("crypt:"); - if (cryptpass1 && strcmp(cryptpass1, p) == 0) - eprintf("password left unchanged\n"); + if (cryptpass1) { + p = crypt(inpass, prevhash); + if (!p) + eprintf("crypt:"); + if (strcmp(cryptpass1, p) == 0) + eprintf("password left unchanged\n"); + } gensalt(salt + strlen(salt)); p = crypt(inpass, salt); if (!p) -- 2.17.1Received on Tue Sep 25 2018 - 06:00:59 CEST
This archive was generated by hypermail 2.3.0 : Tue Sep 25 2018 - 06:24:21 CEST