summaryrefslogtreecommitdiff
path: root/lib/decompress_inflate.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-01-31 09:14:17 -0500
committerSteve French <sfrench@us.ibm.com>2011-01-31 22:35:37 +0000
commit6284644e8de1f4005166c918c3d2aa4c510ab9f6 (patch)
treec9498b41be7f8b569d02d203aeb169bafb63bbcb /lib/decompress_inflate.c
parentcab6958da0094e36a098751f844409fc9ee26251 (diff)
cifs: fix length checks in checkSMB
The cERROR message in checkSMB when the calculated length doesn't match the RFC1001 length is incorrect in many cases. It always says that the RFC1001 length is bigger than the SMB, even when it's actually the reverse. Fix the error message to say the reverse of what it does now when the SMB length goes beyond the end of the received data. Also, clarify the error message when the RFC length is too big. Finally, clarify the comments to show that the 512 byte limit on extra data at the end of the packet is arbitrary. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'lib/decompress_inflate.c')
0 files changed, 0 insertions, 0 deletions