Author: jerry Date: 2005-06-06 14:37:31 +0000 (Mon, 06 Jun 2005) New Revision: 7339
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7339 Log: only check for dfs proxy referrals when the server supports dfs Modified: branches/SAMBA_3_0/source/libsmb/clidfs.c trunk/source/libsmb/clidfs.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/clidfs.c =================================================================== --- branches/SAMBA_3_0/source/libsmb/clidfs.c 2005-06-06 14:23:20 UTC (rev 7338) +++ branches/SAMBA_3_0/source/libsmb/clidfs.c 2005-06-06 14:37:31 UTC (rev 7339) @@ -161,7 +161,7 @@ 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 ); } Modified: trunk/source/libsmb/clidfs.c =================================================================== --- trunk/source/libsmb/clidfs.c 2005-06-06 14:23:20 UTC (rev 7338) +++ trunk/source/libsmb/clidfs.c 2005-06-06 14:37:31 UTC (rev 7339) @@ -161,7 +161,7 @@ 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 ); }