From 3ae9bbe8c1c0e96591f8e63b835b6d55e14503f6 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 17 Nov 1996 02:28:17 +0000 Subject: [PATCH] fix git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1000 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/otp/otp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/otp/otp.c b/appl/otp/otp.c index fac8f31d7..3c59ea615 100644 --- a/appl/otp/otp.c +++ b/appl/otp/otp.c @@ -83,7 +83,7 @@ renew (int argc, char **argv, int count, OtpAlgorithm *alg, int hexp) ctx = &oldctx; if(otp_challenge (ctx, user, prompt, sizeof(prompt))) return 1; - kf(des_read_pw_string (pw, sizeof(pw), prompt, 0)) + if(des_read_pw_string (pw, sizeof(pw), prompt, 0)) return 1; ret = otp_verify_user_1 (ctx, pw); if (ret == 0) { @@ -140,7 +140,7 @@ set (int argc, char **argv, int count, OtpAlgorithm *alg, int hexp) ctx.seed[sizeof(ctx.seed) - 1] = '\0'; strlwr(ctx.seed); do { - if (des_read_pw_string (pw, sizeof(pw), "Pass-phrase: ", VERIFY)) + if (des_read_pw_string (pw, sizeof(pw), "Pass-phrase: ", 1)) return 1; if (strlen (pw) < OTP_MIN_PASSPHRASE) printf ("Too short pass-phrase. Use at least %d characters\n",