cifs: check for NULL session password
authorJeff Layton <jlayton@redhat.com>
Mon, 23 Aug 2010 15:38:04 +0000 (11:38 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 23 Aug 2010 17:38:31 +0000 (17:38 +0000)
commit24e6cf92fde1f140d8eb0bf7cd24c2c78149b6b2
tree62ead9abea45977c5c9086284611bcb74f844aa2
parent3ec6bbcdb4e85403f2c5958876ca9492afdf4031
cifs: check for NULL session password

It's possible for a cifsSesInfo struct to have a NULL password, so we
need to check for that prior to running strncmp on it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c