From: Gerald Carter Date: Mon, 6 Jun 2005 14:37:31 +0000 (+0000) Subject: r7339: only check for dfs proxy referrals when the server supports dfs X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5;p=metze%2Fsamba%2Fwip.git r7339: only check for dfs proxy referrals when the server supports dfs (This used to be commit 9e93244fa5bd06b142a980d4090fa8f95afc983a) --- diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 30c870161957..7ce4871b4d7c 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -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 ); }