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)
commit0124cc45113f93b52c76589dc596a026917859bb
tree543f7b35f2392e3fe24e96c940c840ef6c454304
parentad313cb86dfba27f8f2306da304974ef17c91c56
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