mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
MFC r299948
Set retval in the empty password case to avoid a path through the code that fails to set retval before falling through to the final return(). Reported by: emaste Reported by: Coverity CID: 1018711
This commit is contained in:
parent
8368aaffce
commit
b77232adfe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=300456
@ -332,6 +332,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
|
||||
* XXX check PAM_DISALLOW_NULL_AUTHTOK
|
||||
*/
|
||||
old_pass = "";
|
||||
retval = PAM_SUCCESS;
|
||||
} else {
|
||||
retval = pam_get_authtok(pamh,
|
||||
PAM_OLDAUTHTOK, &old_pass, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user