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>

authored by Jeff Layton and committed by Steve French 24e6cf92 3ec6bbcd

+1
+1
fs/cifs/connect.c
··· 1673 1673 MAX_USERNAME_SIZE)) 1674 1674 continue; 1675 1675 if (strlen(vol->username) != 0 && 1676 + ses->password != NULL && 1676 1677 strncmp(ses->password, 1677 1678 vol->password ? vol->password : "", 1678 1679 MAX_PASSWORD_SIZE))