]> git.samba.org - metze/samba/wip.git/commitdiff
r7339: only check for dfs proxy referrals when the server supports dfs
authorGerald Carter <jerry@samba.org>
Mon, 6 Jun 2005 14:37:31 +0000 (14:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:57:06 +0000 (10:57 -0500)
(This used to be commit 9e93244fa5bd06b142a980d4090fa8f95afc983a)

source3/libsmb/clidfs.c

index 30c8701619574e00d7a5004573f6fcbf450488c7..7ce4871b4d7cea7acebec6d70a3448cedbf2314b 100644 (file)
@@ -161,7 +161,7 @@ static struct cli_state *do_connect( const char *server, const char *share,
           here before trying to connect to the original share.
           check_dfs_proxy() will fail if it is a normal share. */
 
-       if ( cli_check_msdfs_proxy( c, sharename, newserver, newshare ) ) {
+       if ( (c->capabilities & CAP_DFS) && cli_check_msdfs_proxy( c, sharename, newserver, newshare ) ) {
                cli_shutdown(c);
                return do_connect( newserver, newshare, False );
        }