diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-23 05:11:08 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-23 05:11:08 +0000 |
commit | b92c1d64bb76696e6668913a140f5ec64a0e24d8 (patch) | |
tree | 0c1328513a13cda101db1654c588e47f3fc1478b /lib/libc/tests/nss/testutil.h | |
parent | 91fbd99e629388c273182ddea4f1037d73d168d2 (diff) | |
download | FreeBSD-src-b92c1d64bb76696e6668913a140f5ec64a0e24d8.zip FreeBSD-src-b92c1d64bb76696e6668913a140f5ec64a0e24d8.tar.gz |
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
Diffstat (limited to 'lib/libc/tests/nss/testutil.h')
0 files changed, 0 insertions, 0 deletions