summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2011-03-09 13:48:06 +0100
committerAndrew Bartlett <abartlet@samba.org>2011-04-14 01:32:22 +0200
commit36f7f985c168468a82a6e941c6e21c6113b906ca (patch)
tree56e44d8a68a48ec4dad6938f6e75cd0799631f0e /source4/libcli/raw
parent165521e20d8aea1e35cc68e39ced57de64f8e560 (diff)
downloadsamba-36f7f985c168468a82a6e941c6e21c6113b906ca.tar.gz
samba-36f7f985c168468a82a6e941c6e21c6113b906ca.tar.bz2
samba-36f7f985c168468a82a6e941c6e21c6113b906ca.zip
s4/libcli: do not announce NT error code support when it is disabled
when the support of NT error codes has been disabled in the options of a CLI connection, support for them should not be announced during protocol negotiation Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/rawnegotiate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c
index 67f3bfa0af..4f8c13e77b 100644
--- a/source4/libcli/raw/rawnegotiate.c
+++ b/source4/libcli/raw/rawnegotiate.c
@@ -62,7 +62,10 @@ struct smbcli_request *smb_raw_negotiate_send(struct smbcli_transport *transport
return NULL;
}
- flags2 |= FLAGS2_32_BIT_ERROR_CODES;
+ if (transport->options.ntstatus_support) {
+ flags2 |= FLAGS2_32_BIT_ERROR_CODES;
+ }
+
if (unicode) {
flags2 |= FLAGS2_UNICODE_STRINGS;
}