summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/nss/testutil.h
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2016-05-23 05:11:08 +0000
committertruckman <truckman@FreeBSD.org>2016-05-23 05:11:08 +0000
commitb92c1d64bb76696e6668913a140f5ec64a0e24d8 (patch)
tree0c1328513a13cda101db1654c588e47f3fc1478b /lib/libc/tests/nss/testutil.h
parent91fbd99e629388c273182ddea4f1037d73d168d2 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud