From 522debf4fd85d981f5118693ad97663ad0d16c6b Mon Sep 17 00:00:00 2001 From: des Date: Fri, 26 Apr 2002 01:47:48 +0000 Subject: Fix a really dumb bug (missing curly braces around the body of an if statement) that caused pam_sm_chauthtok() to always fail silently. --- lib/libpam/modules/pam_unix/pam_unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libpam') diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index c40fd3a..510eb39 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -352,9 +352,10 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, pam_error(pamh, "Mismatch; try again, EOF to quit."); } PAM_LOG("Got new password"); - if (retval != PAM_SUCCESS) + if (retval != PAM_SUCCESS) { PAM_VERBOSE_ERROR("Unable to get new password"); - return (retval); + return (retval); + } pwd->pw_change = 0; lc = login_getclass(NULL); -- cgit v1.1