]> www.infradead.org Git - users/dwmw2/linux.git/commit
cifs: Use kzfree() to zero out the password
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Aug 2019 10:59:17 +0000 (13:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:15:38 +0000 (07:15 +0200)
commita8bea0667a33d9fbf21826c7c19b759d8eae5d11
tree268f1f99e7328890ebb2f7b3a177741b3b44c7c9
parent904847402bd74a28164bd4d8da082d1eace7c190
cifs: Use kzfree() to zero out the password

[ Upstream commit 478228e57f81f6cb60798d54fc02a74ea7dd267e ]

It's safer to zero out the password so that it can never be disclosed.

Fixes: 0c219f5799c7 ("cifs: set domainName when a domain-key is used in multiuser")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/connect.c