]> git.proxmox.com Git - mirror_zfs.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)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 23:48:35 +0000 (16:48 -0700)
commit9a49c6b782443ba6e627f2261c45f082ad843094
tree89e41f6544961190643e3561801bd1fb42968c82
parenta51288aabbbc176a8a73a8b3cd56f79607db32cf
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