diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-04-16 10:05:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-17 01:58:24 +0200 |
commit | b0f34bc8ca072c06b89934fbef516a2f3da0e269 (patch) | |
tree | f7c1cdba573d887c421eed41b2f871d982ab162d /source4/libcli/smb2 | |
parent | a5d52174bd993b32d01d26a795a56df4a92eba45 (diff) | |
download | samba-b0f34bc8ca072c06b89934fbef516a2f3da0e269.tar.gz samba-b0f34bc8ca072c06b89934fbef516a2f3da0e269.tar.bz2 samba-b0f34bc8ca072c06b89934fbef516a2f3da0e269.zip |
libcli/smb2: also offer the SMB2 dialect that what used in longhorn beta3
With this smbtorture works against longhorn beta3 again,
hopefully it still works with new versions...
metze
(This used to be commit 874924a85a862e38b7d1a6199276e998cf3697d8)
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r-- | source4/libcli/smb2/connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index d68b85ad54..59d4e6ea2d 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -121,7 +121,7 @@ static void continue_socket(struct composite_context *creq) struct smbcli_socket *sock; struct smb2_transport *transport; struct smb2_request *req; - uint16_t dialects[1]; + uint16_t dialects[2]; c->status = smbcli_sock_connect_recv(creq, state, &sock); if (!composite_is_ok(c)) return; @@ -130,11 +130,12 @@ static void continue_socket(struct composite_context *creq) if (composite_nomem(transport, c)) return; ZERO_STRUCT(state->negprot); - state->negprot.in.dialect_count = 1; + state->negprot.in.dialect_count = 2; state->negprot.in.security_mode = 0; state->negprot.in.capabilities = 0; unix_to_nt_time(&state->negprot.in.start_time, time(NULL)); - dialects[0] = SMB2_DIALECT_REVISION; + dialects[0] = 0; + dialects[1] = SMB2_DIALECT_REVISION; state->negprot.in.dialects = dialects; req = smb2_negprot_send(transport, &state->negprot); |