mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:torture/vfs/fruit: fix a few error checks in "delete AFP_AfpInfo by writing all 0"
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
242f42ef79
commit
394d1fc9ac
@ -3675,8 +3675,8 @@ static bool test_afpinfo_all0(struct torture_context *tctx,
|
||||
create.in.fname = fname;
|
||||
|
||||
status = smb2_create(tree, mem_ctx, &create);
|
||||
torture_assert_goto(tctx, ret == true, ret, done,
|
||||
"smb2_create failed\n");
|
||||
torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
|
||||
"smb2_create failed\n");
|
||||
baseh = create.out.file.handle;
|
||||
|
||||
ZERO_STRUCT(create);
|
||||
@ -3686,8 +3686,8 @@ static bool test_afpinfo_all0(struct torture_context *tctx,
|
||||
create.in.fname = sname;
|
||||
|
||||
status = smb2_create(tree, mem_ctx, &create);
|
||||
torture_assert_goto(tctx, ret == true, ret, done,
|
||||
"smb2_create failed\n");
|
||||
torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
|
||||
"smb2_create failed\n");
|
||||
h1 = create.out.file.handle;
|
||||
|
||||
status = smb2_util_write(tree, h1, infobuf, 0, AFP_INFO_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user