summaryrefslogtreecommitdiff
path: root/source4/torture/nbench/nbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/nbench/nbio.c')
-rw-r--r--source4/torture/nbench/nbio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/nbench/nbio.c b/source4/torture/nbench/nbio.c
index 819383b7d8..4ce3ea011b 100644
--- a/source4/torture/nbench/nbio.c
+++ b/source4/torture/nbench/nbio.c
@@ -22,7 +22,7 @@
#include "includes.h"
-#define MAX_FILES 1000
+#define MAX_FILES 100
extern int nbench_line_count;
static int nbio_id;
@@ -557,6 +557,10 @@ void nb_deltree(const char *dname)
{
int total_deleted;
+ smb_raw_exit(c->session);
+
+ ZERO_STRUCT(ftable);
+
total_deleted = cli_deltree(c->tree, dname);
if (total_deleted == -1) {
@@ -570,7 +574,6 @@ void nb_deltree(const char *dname)
void nb_cleanup(const char *cname)
{
char *dname = NULL;
- smb_raw_exit(c->session);
asprintf(&dname, "\\clients\\%s", cname);
nb_deltree(dname);
free(dname);