summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-08 17:28:29 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-15 08:33:13 +0200
commit74a6fb349f935c0eecb3dae151218c2ab25b40e1 (patch)
tree4a3865759ae5955221285ced3d366268a64f3bd4 /source3
parentdd836aac9dde796be3fb9a883d2e3982db6512fd (diff)
downloadsamba-74a6fb349f935c0eecb3dae151218c2ab25b40e1.tar.gz
samba-74a6fb349f935c0eecb3dae151218c2ab25b40e1.tar.bz2
samba-74a6fb349f935c0eecb3dae151218c2ab25b40e1.zip
s3:libsmb: use CAP_EXTENDED_SECURITY instead of cli->use_spnego
cli->capabilities contains the negotiated capabilities. metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index be7f462471..3198c7a733 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -90,7 +90,7 @@ void cli_setup_packet_buf(struct cli_state *cli, char *buf)
flags2 |= FLAGS2_DFS_PATHNAMES;
if (cli_state_capabilities(cli) & CAP_STATUS32)
flags2 |= FLAGS2_32_BIT_ERROR_CODES;
- if (cli->use_spnego)
+ if (cli_state_capabilities(cli) & CAP_EXTENDED_SECURITY)
flags2 |= FLAGS2_EXTENDED_SECURITY;
SSVAL(buf,smb_flg2, flags2);
}