aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2023-01-10 20:55:20 +0000
committerSteve French <[email protected]>2023-01-10 21:32:03 +0000
commit39e8db3c860e2678ce5a7d74193925876507c9eb (patch)
treefb5cbca42dd71bdfd661772ed4195945b3d610d5 /rust/helpers.c
parentcifs: remove redundant assignment to the variable match (diff)
downloadkernel-39e8db3c860e2678ce5a7d74193925876507c9eb.tar.gz
kernel-39e8db3c860e2678ce5a7d74193925876507c9eb.zip
cifs: fix double free on failed kerberos auth
If session setup failed with kerberos auth, we ended up freeing cifs_ses::auth_key.response twice in SMB2_auth_kerberos() and sesInfoFree(). Fix this by zeroing out cifs_ses::auth_key.response after freeing it in SMB2_auth_kerberos(). Fixes: a4e430c8c8ba ("cifs: replace kfree() with kfree_sensitive() for sensitive data") Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Acked-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions