diff options
author | Jeremy Allison <jra@samba.org> | 2018-08-31 15:44:16 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-09-04 05:23:57 +0200 |
commit | c86f6c2916c0c87efffe2d5b48f231a073b8c33e (patch) | |
tree | b81767beaffa37c3a2e15883eda3679b0b2188bd /source4 | |
parent | 1799633cb9ac574c8c3f44bbfebc59b8033243f1 (diff) | |
download | samba-c86f6c2916c0c87efffe2d5b48f231a073b8c33e.tar.gz |
s4: torture: Ensure we close the handle on the correct tree-id.
Otherwise we leave a directory behind on exit.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 4 05:23:57 CEST 2018 on sn-devel-144
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 02a76c626e3..ebb4f8a4f8e 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -2559,7 +2559,7 @@ static bool torture_smb2_inotify_rename(struct torture_context *torture, ok = true; done: if (!smb2_util_handle_empty(h1)) { - smb2_util_close(tree2, h1); + smb2_util_close(tree1, h1); } if (!smb2_util_handle_empty(h2)) { smb2_util_close(tree2, h2); |