]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/transport.c
cifs: remove rfc1002 header from all SMB2 response structures
[linux.git] / fs / cifs / transport.c
index 927226a2122f4dde57955fe805013d14fd6237df..e7254e386b79647a6d29e6a1ca0cb90dd2f6e3e5 100644 (file)
@@ -800,8 +800,8 @@ cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
 #ifdef CONFIG_CIFS_SMB311
        if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) {
                struct kvec iov = {
-                       .iov_base = buf + 4,
-                       .iov_len = get_rfc1002_length(buf)
+                       .iov_base = buf,
+                       .iov_len = midQ->resp_buf_size
                };
                smb311_update_preauth_hash(ses, &iov, 1);
        }