r16907: Add an index parameter to torture_open_connection. Next step is to enable the
[nivanova/samba-autobuild/.git] / source4 / torture / raw / samba3misc.c
index f9f926fb11f6008e4954f759bed29e81b3be40e3..0cbc7912ed66b3e916adfd214205dce0fb02655b 100644 (file)
@@ -228,9 +228,6 @@ BOOL torture_samba3_badpath(struct torture_context *torture)
        NTSTATUS status;
        BOOL ret = True;
        TALLOC_CTX *mem_ctx;
-       ssize_t nread;
-       char buf[16];
-       struct smbcli_tree *tree2;
        BOOL nt_status_support;
 
        if (!(mem_ctx = talloc_init("torture_samba3_badpath"))) {
@@ -245,7 +242,7 @@ BOOL torture_samba3_badpath(struct torture_context *torture)
                goto fail;
        }
 
-       if (!torture_open_connection(&cli_nt)) {
+       if (!torture_open_connection(&cli_nt, 0)) {
                goto fail;
        }
 
@@ -254,7 +251,7 @@ BOOL torture_samba3_badpath(struct torture_context *torture)
                goto fail;
        }
 
-       if (!torture_open_connection(&cli_dos)) {
+       if (!torture_open_connection(&cli_dos, 1)) {
                goto fail;
        }