s3:libsmb: use cli_tree_connect() instead of cli_tcon_andx()
authorStefan Metzmacher <metze@samba.org>
Wed, 30 May 2012 08:20:11 +0000 (10:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 30 May 2012 08:24:57 +0000 (10:24 +0200)
cli_tree_connect() is more generic and uses what the server supports

metze

source3/libsmb/cliconnect.c

index e45bf25702a5f718e2f9451fa395082d0bf1423d..9481e75e64ca5ec71529e2727a104d1c82db0861 100644 (file)
@@ -2835,8 +2835,8 @@ NTSTATUS cli_full_connection(struct cli_state **output_cli,
        }
 
        if (service) {
-               nt_status = cli_tcon_andx(cli, service, service_type, password,
-                                         pw_len);
+               nt_status = cli_tree_connect(cli, service, service_type,
+                                            password, pw_len);
                if (!NT_STATUS_IS_OK(nt_status)) {
                        DEBUG(1,("failed tcon_X with %s\n", nt_errstr(nt_status)));
                        cli_shutdown(cli);