From 6e8a6e033f4040630995f0c2f1889fbc251cb7dc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 1 Aug 2011 16:42:23 +0200 Subject: s3:libsmb/cli*: make use of cli_state_capabilities() metze --- source3/libsmb/clidfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libsmb/clidfs.c') diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index d729649286..514ff80695 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -201,7 +201,7 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx, here before trying to connect to the original share. cli_check_msdfs_proxy() will fail if it is a normal share. */ - if ((c->capabilities & CAP_DFS) && + if ((cli_state_capabilities(c) & CAP_DFS) && cli_check_msdfs_proxy(ctx, c, sharename, &newserver, &newshare, force_encrypt, @@ -589,10 +589,10 @@ static bool cli_dfs_check_error(struct cli_state *cli, NTSTATUS expected, { /* only deal with DS when we negotiated NT_STATUS codes and UNICODE */ - if (!(cli->capabilities & CAP_UNICODE)) { + if (!(cli_state_capabilities(cli) & CAP_UNICODE)) { return false; } - if (!(cli->capabilities & CAP_STATUS32)) { + if (!(cli_state_capabilities(cli) & CAP_STATUS32)) { return false; } if (NT_STATUS_EQUAL(status, expected)) { -- cgit