]> Pileus Git - ~andy/linux/commitdiff
Fix endian error in SMB2 protocol negotiation
authorSteve French <smfrench@gmail.com>
Thu, 13 Jun 2013 00:59:03 +0000 (19:59 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 24 Jun 2013 06:56:45 +0000 (01:56 -0500)
Fix minor endian error in Jeff's auth rewrite

Reviewed-by: Jeff Laytonn <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c

index fd2ea4271282804ce2a1bd84d681d74e565b023a..a20a8a7e1470ecbc1d0d43ca946516f3b19bca69 100644 (file)
@@ -352,9 +352,9 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
 
        /* only one of SMB2 signing flags may be set in SMB2 request */
        if (ses->sign)
-               req->SecurityMode = SMB2_NEGOTIATE_SIGNING_REQUIRED;
+               req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED);
        else if (global_secflags & CIFSSEC_MAY_SIGN)
-               req->SecurityMode = SMB2_NEGOTIATE_SIGNING_ENABLED;
+               req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED);
        else
                req->SecurityMode = 0;