Make cli_tcon_andx async
[amitay/samba.git] / source3 / torture / masktest.c
index 2c3bda1d436a2155613210cf014aef22cb1ce649..fb562c80755d396cb9d51ed5eff2da21dbf6d90b 100644 (file)
@@ -249,9 +249,10 @@ static struct cli_state *connect_one(char *share)
 
        DEBUG(4,(" session setup ok\n"));
 
-       if (!cli_send_tconX(c, share, "?????",
-                           password, strlen(password)+1)) {
-               DEBUG(0,("tree connect failed: %s\n", cli_errstr(c)));
+       status = cli_tcon_andx(c, share, "?????", password,
+                              strlen(password)+1);
+       if (!NT_STATUS_IS_OK(status)) {
+               DEBUG(0,("tree connect failed: %s\n", nt_errstr(status)));
                cli_shutdown(c);
                return NULL;
        }