summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/rawnegotiate.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/raw/rawnegotiate.c')
-rw-r--r--source4/libcli/raw/rawnegotiate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c
index d2d6b66d59..07b9dd572a 100644
--- a/source4/libcli/raw/rawnegotiate.c
+++ b/source4/libcli/raw/rawnegotiate.c
@@ -174,10 +174,14 @@ NTSTATUS smb_raw_negotiate_recv(struct smbcli_request *req)
}
/* a way to force ascii SMB */
- if (!lp_unicode() || getenv("SMBCLI_FORCE_ASCII")) {
+ if (!lp_unicode()) {
transport->negotiate.capabilities &= ~CAP_UNICODE;
}
+ if (!lp_nt_status_support()) {
+ transport->negotiate.capabilities &= ~CAP_STATUS32;
+ }
+
failed:
return smbcli_request_destroy(req);
}