summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-08-15 13:35:48 +0000
committerSteve French <sfrench@us.ibm.com>2006-08-15 13:35:48 +0000
commit5ddaa683a513439081c9511b0d9ad490672c51c9 (patch)
tree7c90bbc458cc2c05331a8bcb142e2eb41469056f /fs/cifs/cifssmb.c
parente466e4876bf39474e15d0572f2204578137ae7f5 (diff)
downloadtalos-obmc-linux-5ddaa683a513439081c9511b0d9ad490672c51c9.tar.gz
talos-obmc-linux-5ddaa683a513439081c9511b0d9ad490672c51c9.zip
[CIFS] endian errors in lanman protocol support
le16 compared to host-endian constant u8 fed to le32_to_cpu() le16 compared to host-endian constant Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index dcbc3e075e81..075d8fb3d376 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -477,7 +477,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
/* BB get server time for time conversions and add
code to use it and timezone since this is not UTC */
- if (rsp->EncryptionKeyLength == CIFS_CRYPTO_KEY_SIZE) {
+ if (rsp->EncryptionKeyLength == cpu_to_le16(CIFS_CRYPTO_KEY_SIZE)) {
memcpy(server->cryptKey, rsp->EncryptionKey,
CIFS_CRYPTO_KEY_SIZE);
} else if (server->secMode & SECMODE_PW_ENCRYPT) {
OpenPOWER on IntegriCloud