From: Jeremy Allison Date: Fri, 31 Aug 2018 22:43:41 +0000 (-0700) Subject: s4: torture: Ensure we can't exit without deleting our directory. X-Git-Tag: tdb-1.3.17~1870 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1799633cb9ac574c8c3f44bbfebc59b8033243f1;p=thirdparty%2Fsamba.git s4: torture: Ensure we can't exit without deleting our directory. Signed-off-by: Jeremy Allison Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 0e5ba4a7144..02a76c626e3 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -2486,7 +2486,7 @@ static bool torture_smb2_inotify_rename(struct torture_context *torture, while (!NT_STATUS_EQUAL(req->status, STATUS_PENDING)) { if (tevent_loop_once(torture->ev) != 0) { - return false; + goto done; } }