We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf2159 commit c14a602Copy full SHA for c14a602
fs/cifs/smb2pdu.c
@@ -1028,7 +1028,9 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
1028
* SMB3.0 supports only 1 cipher and doesn't have a encryption neg context
1029
* Set the cipher type manually.
1030
*/
1031
- if (server->dialect == SMB30_PROT_ID && (server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))
+ if ((server->dialect == SMB30_PROT_ID ||
1032
+ server->dialect == SMB302_PROT_ID) &&
1033
+ (server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))
1034
server->cipher_type = SMB2_ENCRYPTION_AES128_CCM;
1035
1036
security_blob = smb2_get_data_area_len(&blob_offset, &blob_length,
0 commit comments