aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/libzfs_sendrecv.c
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2022-10-05 20:09:24 -0400
committerGitHub <[email protected]>2022-10-05 17:09:24 -0700
commit2ba240f3583e421e87ca3c5be0fb6146bf9c3f07 (patch)
tree227cd728303befa270558065b80cafa733578738 /lib/libzfs/libzfs_sendrecv.c
parent4b629d04a5b8d26122ce6b0bf2eb9d1d78b382b0 (diff)
PAM: Fix unchecked return value from zfs_key_config_load()
9a49c6b782443ba6e627f2261c45f082ad843094 was intended to fix this issue, but I had missed the case in pam_sm_open_session(). Clang's static analyzer had not reported it and I forgot to look for other cases. Interestingly, GCC gcc-12.1.1_p20220625's static analyzer had caught this as multiple double-free bugs, since another failure after the failure in zfs_key_config_load() will cause us to attempt to free the memory that zfs_key_config_load() was supposed to allocate, but had cleaned up upon failure. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #13978
Diffstat (limited to 'lib/libzfs/libzfs_sendrecv.c')
0 files changed, 0 insertions, 0 deletions