]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: store the real expected sequence number in the mid
authorJeff Layton <jlayton@redhat.com>
Wed, 3 Apr 2013 15:55:03 +0000 (11:55 -0400)
committerSteve French <smfrench@gmail.com>
Sun, 5 May 2013 03:18:01 +0000 (22:18 -0500)
commit22ed11f2dcef8f078c7f4a3176f3e0b7936ededd
tree543f7b35f2392e3fe24e96c940c840ef6c454304
parent1b152cd559bea208c8eb2677596263e5d863822e
cifs: store the real expected sequence number in the mid

Currently, the signing routines take a pointer to a place to store the
expected sequence number for the mid response. It then stores a value
that's one below what that sequence number should be, and then adds one
to it when verifying the signature on the response.

Increment the sequence number before storing the value in the mid, and
eliminate the "+1" when checking the signature.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifssmb.c
fs/cifs/transport.c