HomeFreeBSD

Hoist the getpwnam() call outside the first if/else block in

Description

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
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS299925: sfxge(4): cleanup: quieten more common code MCDI handlers
Branches
Unknown
Tags
Unknown