summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/gentest.c2
-rw-r--r--source4/torture/raw/oplock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index 03a66487fa..32dd763b26 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -736,7 +736,7 @@ static BOOL oplock_handler(struct cli_transport *transport, uint16 tid, uint16 f
if (!do_close) {
printf("oplock ack fnum=%d\n", fnum);
- return cli_oplock_ack(tree, fnum, level == 1? 0x102 : 2);
+ return cli_oplock_ack(tree, fnum, level);
}
printf("oplock close fnum=%d\n", fnum);
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index dc8c883f76..0eabcc94f7 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -54,7 +54,7 @@ static BOOL oplock_handler_ack(struct cli_transport *transport, uint16 tid, uint
printf("Acking in oplock handler\n");
- return cli_oplock_ack(tree, fnum, level == 1? 0x102 : 2);
+ return cli_oplock_ack(tree, fnum, level);
}
/*