]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: sanitize username handling
authorJeff Layton <jlayton@redhat.com>
Tue, 17 Jan 2012 21:09:15 +0000 (16:09 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 18 Jan 2012 04:40:26 +0000 (22:40 -0600)
commit56d2b79c06c5337b0bc57501a5f418c7dbadae3e
tree8727fdf5c811bab3d164293488cd5e1a3816276c
parent2eb03dd0893314d77d702825930673ec40a8e86f
cifs: sanitize username handling

Currently, it's not very clear whether you're allowed to have a NULL
vol->username or ses->user_name. Some places check for it and some don't.

Make it clear that a NULL pointer is OK in these fields, and ensure that
all the callers check for that.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_spnego.c
fs/cifs/cifsencrypt.c
fs/cifs/connect.c