K 10 svn:author V 8 truckman K 8 svn:date V 27 2016-05-23T05:11:08.686056Z K 7 svn:log V 286 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 END