summaryrefslogtreecommitdiff
path: root/source3/torture/denytest.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2005-05-02 17:49:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:46 -0500
commit1c4bbe06549d86614318718a45b9bc48e3bfc81f (patch)
tree121ab409dccc32c6d0f4ea7289d95843780225ce /source3/torture/denytest.c
parent714a426fe579ad481aa342a8d4cfd5331a12978f (diff)
downloadsamba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.tar.gz
samba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.tar.bz2
samba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.zip
r6586: get rid of a few more compiler warnings
(This used to be commit 173375f8d88bf8e8db8d60e5d5f0e5dcc28767d9)
Diffstat (limited to 'source3/torture/denytest.c')
-rw-r--r--source3/torture/denytest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/denytest.c b/source3/torture/denytest.c
index 89b0fdf93f..a130b59815 100644
--- a/source3/torture/denytest.c
+++ b/source3/torture/denytest.c
@@ -1556,8 +1556,8 @@ BOOL torture_denytest2(int dummy)
resultstr(denytable2[i].result));
}
- cli_close(cli1, fnum1);
- cli_close(cli2, fnum2);
+ if (fnum1 != -1) cli_close(cli1, fnum1);
+ if (fnum2 != -1) cli_close(cli2, fnum2);
}
for (i=0;i<2;i++) {