summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-06 14:37:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:06 -0500
commit7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5 (patch)
treeb824641d7919fc3544f9d361eaab6158201cf160 /source3
parent74a98c60724c0f993ee3a5efbc46c1ba57b9dd20 (diff)
downloadsamba-7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5.tar.gz
samba-7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5.tar.bz2
samba-7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5.zip
r7339: only check for dfs proxy referrals when the server supports dfs
(This used to be commit 9e93244fa5bd06b142a980d4090fa8f95afc983a)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clidfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 30c8701619..7ce4871b4d 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 );
}