From cc68b825cce04e45e8ae72f5ed6d70015727bf91 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 7 Jul 1999 18:08:22 +0000 Subject: [PATCH] make PASSWORD_NOT_CORRECT logging consistent with other modules --- check_sia.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/check_sia.c b/check_sia.c index 8a389fdb1..ebf607e4c 100644 --- a/check_sia.c +++ b/check_sia.c @@ -125,18 +125,13 @@ sia_attempt_auth() return; } - --counter; + --counter; /* otherwise, try again */ pass_warn(stderr); } set_perms(PERM_USER, 0); - if (counter > 0) { - log_error(PASSWORD_NOT_CORRECT); - inform_user(PASSWORD_NOT_CORRECT); - } else { - log_error(PASSWORDS_NOT_CORRECT); - inform_user(PASSWORDS_NOT_CORRECT); - } + log_error(counter ? PASSWORD_NOT_CORRECT : PASSWORDS_NOT_CORRECT); + inform_user(counter ? PASSWORD_NOT_CORRECT : PASSWORDS_NOT_CORRECT); exit(1); }