diff options
Diffstat (limited to 'fs/cifs/smb2pdu.c')
| -rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index ce83e2edbe0a..597a417ba94d 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
| @@ -922,7 +922,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree, | |||
| 922 | if (tcon && tcon->bad_network_name) | 922 | if (tcon && tcon->bad_network_name) |
| 923 | return -ENOENT; | 923 | return -ENOENT; |
| 924 | 924 | ||
| 925 | if ((tcon->seal) && | 925 | if ((tcon && tcon->seal) && |
| 926 | ((ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION) == 0)) { | 926 | ((ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION) == 0)) { |
| 927 | cifs_dbg(VFS, "encryption requested but no server support"); | 927 | cifs_dbg(VFS, "encryption requested but no server support"); |
| 928 | return -EOPNOTSUPP; | 928 | return -EOPNOTSUPP; |
