Message ID | 1296132476-21948-1-git-send-email-jlayton@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 47034af..12a3e04 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -581,11 +581,10 @@ incomplete_rcv: else if (reconnect == 1) continue; - length += 4; /* account for rfc1002 hdr */ + total_read += 4; /* account for rfc1002 hdr */ - - dump_smb(smb_buffer, length); - if (checkSMB(smb_buffer, smb_buffer->Mid, total_read+4)) { + dump_smb(smb_buffer, total_read); + if (checkSMB(smb_buffer, smb_buffer->Mid, total_read)) { cifs_dump_mem("Bad SMB: ", smb_buffer, 48); continue; }