Fix a really dumb bug (missing curly braces around the body of an if

statement) that caused pam_sm_chauthtok() to always fail silently.
This commit is contained in:
Dag-Erling Smørgrav 2002-04-26 01:47:48 +00:00
parent 4596ce3d47
commit c8c20c5226
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95477

View File

@ -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);