cifs: change smb2_get_data_area_len to take a smb2_sync_hdr as argument

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Ronnie Sahlberg
2018-06-01 10:53:05 +10:00
committed by Steve French
parent 84f0cbfba8
commit e4dc31fe9a
3 changed files with 22 additions and 20 deletions

View File

@@ -767,7 +767,7 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
server->capabilities |= SMB2_NT_FIND | SMB2_LARGE_FILES;
security_blob = smb2_get_data_area_len(&blob_offset, &blob_length,
&rsp->hdr);
&rsp->hdr.sync_hdr);
/*
* See MS-SMB2 section 2.2.4: if no blob, client picks default which
* for us will be