From 36f7f985c168468a82a6e941c6e21c6113b906ca Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Wed, 9 Mar 2011 13:48:06 +0100 Subject: [PATCH] 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 --- source4/libcli/raw/rawnegotiate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.34.1