s3:client: make use of cli_state_protocol()
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 15:01:42 +0000 (17:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 02:54:29 +0000 (04:54 +0200)
metze

source3/client/client.c

index 44a151e78f196ce75d498afa2a4838bfe64392af..110614ecd22e870996e0ce0e3da56f8b9281289f 100644 (file)
@@ -426,7 +426,7 @@ static int do_cd(const char *new_dir)
        /* Use a trans2_qpathinfo to test directories for modern servers.
           Except Win9x doesn't support the qpathinfo_basic() call..... */
 
-       if (targetcli->protocol > PROTOCOL_LANMAN2 && !targetcli->win95) {
+       if (cli_state_protocol(targetcli) > PROTOCOL_LANMAN2 && !targetcli->win95) {
 
                status = cli_qpathinfo_basic(targetcli, targetpath, &sbuf,
                                             &attributes);