diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index bfbf3235a69b..05f1dcf7d79a 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -630,12 +630,16 @@ incomplete_rcv: | |||
630 | isMultiRsp = true; | 630 | isMultiRsp = true; |
631 | if (mid_entry->resp_buf) { | 631 | if (mid_entry->resp_buf) { |
632 | /* merge response - fix up 1st*/ | 632 | /* merge response - fix up 1st*/ |
633 | if (coalesce_t2(smb_buffer, | 633 | length = coalesce_t2(smb_buffer, |
634 | mid_entry->resp_buf)) { | 634 | mid_entry->resp_buf); |
635 | if (length > 0) { | ||
636 | length = 0; | ||
635 | mid_entry->multiRsp = true; | 637 | mid_entry->multiRsp = true; |
636 | break; | 638 | break; |
637 | } else { | 639 | } else { |
638 | /* all parts received */ | 640 | /* all parts received or |
641 | * packet is malformed | ||
642 | */ | ||
639 | mid_entry->multiEnd = true; | 643 | mid_entry->multiEnd = true; |
640 | goto multi_t2_fnd; | 644 | goto multi_t2_fnd; |
641 | } | 645 | } |