HomeFreeBSD

MFC r299926

Description

MFC r299926

Hoist the getpwnam() call outside the first if/else block in
pam_sm_chauthtok(). Set user = getlogin() inside the true
branch so that it is initialized for the following PAM_LOG()
call. This is how it is done in pam_sm_authenticate().

Reported by: Coverity
CID: 272498

Details

Provenance
truckmanAuthored on
Parents
rS300452: MFC r299922
Branches
Unknown
Tags
Unknown