summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
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;
}