]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[CIFS] fix compile error (typo) and warning in cifssmb.c
authorSteve French <sfrench@us.ibm.com>
Fri, 10 Feb 2006 05:52:50 +0000 (05:52 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 10 Feb 2006 05:52:50 +0000 (05:52 +0000)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c

index d69b835c12eceb2f6de068e7b0347bee30b3efcf..fcf98cfd4158bd9353ac8e3248cd649c1bc49e1c 100644 (file)
@@ -198,10 +198,11 @@ small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses,
        if(rc)
                return rc;
 
+       buffer = (struct smb_hdr *)*request_buf;
        buffer->Mid = GetNextMid(ses->server);
        if (ses->capabilities & CAP_UNICODE)
                buffer->Flags2 |= SMBFLG2_UNICODE;
-       if (ses->capabilities & CAP_STATUS32) {
+       if (ses->capabilities & CAP_STATUS32)
                buffer->Flags2 |= SMBFLG2_ERR_STATUS;
 
        /* uid, tid can stay at zero as set in header assemble */