Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLIENT:PAM: fixed missed return check #5317

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sss_client/pam_sss.c
Expand Up @@ -2357,10 +2357,10 @@ static int get_authtok_for_password_change(pam_handle_t *pamh,
}
} else {
ret = prompt_password(pamh, pi, _("Current Password: "));
if (ret != PAM_SUCCESS) {
D(("failed to get password from user"));
return ret;
}
}
if (ret != PAM_SUCCESS) {
D(("failed to get credentials from user"));
return ret;
}

ret = pam_set_item(pamh, PAM_OLDAUTHTOK, pi->pam_authtok);
Expand Down