]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
PAM: Fix uninitialized value read
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Tue, 27 Sep 2022 23:48:35 +0000 (19:48 -0400)
committerTony Hutter <hutter2@llnl.gov>
Thu, 1 Dec 2022 20:39:41 +0000 (12:39 -0800)
commit531361114bb6c0c6b98533499b8790f7cc1747f2
tree65f601c7ccf5ae1ded519e72e25e2394e33c43cf
parente11c4327f12df0e1f3ae9a9187a7ee553d1d6e95
PAM: Fix uninitialized value read

Clang's static analyzer found that config.uid is uninitialized when
zfs_key_config_load() returns an error.

Oddly, this was not included in the unchecked return values that
Coverity found.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13957
contrib/pam_zfs_key/pam_zfs_key.c