diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 47d8ff623683..945b2202275f 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -578,12 +578,12 @@ incomplete_rcv: | |||
578 | else if (reconnect == 1) | 578 | else if (reconnect == 1) |
579 | continue; | 579 | continue; |
580 | 580 | ||
581 | length += 4; /* account for rfc1002 hdr */ | 581 | total_read += 4; /* account for rfc1002 hdr */ |
582 | 582 | ||
583 | 583 | dump_smb(smb_buffer, total_read); | |
584 | dump_smb(smb_buffer, length); | 584 | if (checkSMB(smb_buffer, smb_buffer->Mid, total_read)) { |
585 | if (checkSMB(smb_buffer, smb_buffer->Mid, total_read+4)) { | 585 | cifs_dump_mem("Bad SMB: ", smb_buffer, |
586 | cifs_dump_mem("Bad SMB: ", smb_buffer, 48); | 586 | total_read < 48 ? total_read : 48); |
587 | continue; | 587 | continue; |
588 | } | 588 | } |
589 | 589 | ||