fixed uninitialised variable
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 May 2008 10:16:00 +0000 (20:16 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 May 2008 10:16:00 +0000 (20:16 +1000)
(This used to be commit 8d2e20fcb984c122fbf98cfe712b3145941d881d)

source4/torture/smb2/create.c

index 87a53ed7cf7d777af03caa3b13b7fbda96e1416f..9c9e7e29977e0dc7d1ce06fb698155783f047412 100644 (file)
@@ -129,7 +129,7 @@ bool torture_smb2_create_gentest(struct torture_context *torture, struct smb2_tr
        io.in.create_disposition = NTCREATEX_DISP_OPEN_IF;
        io.in.desired_access = SEC_FLAG_MAXIMUM_ALLOWED;
        io.in.file_attributes = 0;
-       access_mask = 0;
+       file_attributes = 0;
        denied_mask = 0;
        {
                int i;
@@ -149,7 +149,7 @@ bool torture_smb2_create_gentest(struct torture_context *torture, struct smb2_tr
                }
        }
 
-       CHECK_EQUAL(file_attributes, 0xffffbd48);
+       CHECK_EQUAL(file_attributes, 0xffff8048);
        CHECK_EQUAL(denied_mask, 0x4000);
 
        smb2_deltree(tree, FNAME);