]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: Correctly initialize notify request in smb2.notify.tree
authorChristof Schmitt <cs@samba.org>
Thu, 14 Jul 2016 20:35:15 +0000 (13:35 -0700)
committerVolker Lendecke <vl@samba.org>
Mon, 18 Jul 2016 13:14:11 +0000 (15:14 +0200)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/smb2/notify.c

index e045f259924a548a868aa04db6a1a591575da78f..de4ff58bbfdf6a7ac1a94ec497586399c72817f1 100644 (file)
@@ -1883,7 +1883,9 @@ static bool torture_smb2_notify_tree(struct torture_context *torture,
        do {
                /* count events that have happened in each dir */
                for (i=0;i<ARRAY_SIZE(dirs);i++) {
+                       notify.smb2.in.completion_filter = dirs[i].filter;
                        notify.smb2.in.file.handle = dirs[i].h1;
+                       notify.smb2.in.recursive = dirs[i].recursive;
                        req = smb2_notify_send(tree, &(notify.smb2));
                        smb2_cancel(req);
                        notify.smb2.out.num_changes = 0;