From: Christian Ambach Date: Wed, 9 Mar 2011 12:48:06 +0000 (+0100) Subject: s4/libcli: do not announce NT error code support when it is disabled X-Git-Tag: ldb-1.1.0~87 X-Git-Url: http://git.samba.org/samba.git/?p=samba.git;a=commitdiff_plain;h=36f7f985c168468a82a6e941c6e21c6113b906ca 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 --- diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c index 67f3bfa0afd..4f8c13e77be 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; }