aboutsummaryrefslogtreecommitdiffstats
path: root/net/strparser/strparser.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2018-06-15 18:58:00 +0000
committerSteve French <[email protected]>2018-06-16 00:17:40 +0000
commit83ffdeadb46b61580c4c9a5319bd76d258a2963d (patch)
treea6118338b9763022fb49934c1d27bde6f9e97747 /net/strparser/strparser.c
parentcifs: Use correct packet length in SMB2_TRANSFORM header (diff)
downloadkernel-83ffdeadb46b61580c4c9a5319bd76d258a2963d.tar.gz
kernel-83ffdeadb46b61580c4c9a5319bd76d258a2963d.zip
cifs: Fix invalid check in __cifs_calc_signature()
The following check would never evaluate to true: > if (i == 0 && iov[0].iov_len <= 4) Because 'i' always starts at 1. This patch fixes it and also move the header checks outside the for loop - which makes more sense. Signed-off-by: Paulo Alcantara <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/strparser/strparser.c')
0 files changed, 0 insertions, 0 deletions