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)
committerSteve French <stfrench@microsoft.com>
Tue, 27 Aug 2019 21:44:27 +0000 (16:44 -0500)
commit478228e57f81f6cb60798d54fc02a74ea7dd267e
tree63d6529141904a79116471fc9ce8307c4c745a66
parentf2aee329a68f5a907bcff11a109dfe17c0b41aeb
cifs: Use kzfree() to zero out the password

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>
fs/cifs/connect.c