git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165521e
)
s4/libcli: do not announce NT error code support when it is disabled
author
Christian Ambach
<christian.ambach@de.ibm.com>
Wed, 9 Mar 2011 12:48:06 +0000
(13:48 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 13 Apr 2011 23:32:22 +0000
(
01:32
+0200)
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>
source4/libcli/raw/rawnegotiate.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/rawnegotiate.c
b/source4/libcli/raw/rawnegotiate.c
index 67f3bfa0afdfd3a2bd335f0b042ae143a86bfe14..4f8c13e77be3f084d4a142009c62eaf0101be307 100644
(file)
--- 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;
}