]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: add break_info.oplock_skip_ack
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Jun 2020 12:52:07 +0000 (14:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2020 15:54:39 +0000 (15:54 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source4/torture/smb2/oplock_break_handler.c
source4/torture/smb2/oplock_break_handler.h

index d64b0bed6dbdb7cd019e1f0f9874f978f91215b2..d55a83964cd0ce200ebc7f3cd0077095939fd69d 100644 (file)
@@ -84,6 +84,10 @@ bool torture_oplock_ack_handler(struct smb2_transport *transport,
        break_info.received_transport = tree->session->transport;
        SMB_ASSERT(tree->session->transport == transport);
 
+       if (break_info.oplock_skip_ack) {
+               return true;
+       }
+
        req = smb2_break_send(tree, &break_info.br);
        req->async.fn = torture_oplock_ack_callback;
        req->async.private_data = NULL;
index 3286ddbe443aae0d24b2d022c577ffc071aef0bb..c576782b93294f4055bb18b23d2e808a42b1eed1 100644 (file)
@@ -25,6 +25,7 @@
 
 struct break_info {
        struct torture_context *tctx;
+       bool oplock_skip_ack;
        struct smb2_handle handle;
        uint8_t level;
        struct smb2_break br;