From 7344cc3ba4031b00cb0bd3636a0bbbbd01c394a5 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 6 Jun 2005 14:37:31 +0000 Subject: r7339: only check for dfs proxy referrals when the server supports dfs (This used to be commit 9e93244fa5bd06b142a980d4090fa8f95afc983a) --- source3/libsmb/clidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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 ); } -- cgit