summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/torture.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 2f779b9c89..60d7c2ba74 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2922,12 +2922,15 @@ static BOOL run_deletetest(int dummy)
printf("finished delete test\n");
fail:
-
+ /* FIXME: This will crash if we aborted before cli2 got
+ * intialized, because these functions don't handle
+ * uninitialized connections. */
+
cli_close(&cli1, fnum1);
cli_close(&cli1, fnum2);
cli_setatr(&cli1, fname, 0, 0);
cli_unlink(&cli1, fname);
-
+
if (!torture_close_connection(&cli1)) {
correct = False;
}