diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-04-03 11:55:03 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-05-04 22:18:01 -0500 |
commit | 0124cc45113f93b52c76589dc596a026917859bb (patch) | |
tree | 543f7b35f2392e3fe24e96c940c840ef6c454304 /fs/cifs/transport.c | |
parent | ad313cb86dfba27f8f2306da304974ef17c91c56 (diff) | |
download | blackbird-op-linux-0124cc45113f93b52c76589dc596a026917859bb.tar.gz blackbird-op-linux-0124cc45113f93b52c76589dc596a026917859bb.zip |
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>
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 293d2c83dfbe..bfbf4700d160 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -622,7 +622,7 @@ cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, iov.iov_len = len; /* FIXME: add code to kill session */ rc = cifs_verify_signature(&rqst, server, - mid->sequence_number + 1); + mid->sequence_number); if (rc) cifs_dbg(VFS, "SMB signature verification returned error = %d\n", rc); |