From: Todd C. Miller Date: Wed, 7 Jul 1999 18:08:22 +0000 (+0000) Subject: make PASSWORD_NOT_CORRECT logging consistent with other modules X-Git-Tag: SUDO_1_6_0~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc68b825cce04e45e8ae72f5ed6d70015727bf91;p=sudo make PASSWORD_NOT_CORRECT logging consistent with other modules --- 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); }