diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-05-26 09:38:09 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-05-26 09:50:43 +0200 |
commit | 01b05df766cf55c356af495151ac665a82a57c4b (patch) | |
tree | d8adb3cebab5b0a60a4909de68db3e23292fc9fe /source4 | |
parent | d0051462b99ab3102cebe5ce17bf517b5bdf6c03 (diff) | |
download | samba-01b05df766cf55c356af495151ac665a82a57c4b.tar.gz samba-01b05df766cf55c356af495151ac665a82a57c4b.tar.bz2 samba-01b05df766cf55c356af495151ac665a82a57c4b.zip |
s4:libcli/smb2: use new SMB2_DIVELECT_REVISION constants
Also send them in the order a windows client would
send them (the lowest first).
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/smb2/connect.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index 8d6ea04dc8..8c1a73b681 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -164,8 +164,11 @@ static void continue_socket(struct composite_context *creq) struct smbcli_socket *sock; struct smb2_transport *transport; struct smb2_request *req; - uint16_t dialects[3] = { SMB2_DIALECT_REVISION, SMB21_DIALECT_REVISION, - SMB2_LONGHORN_BETA_DIALECT_REVISION }; + uint16_t dialects[3] = { + SMB2_DIALECT_REVISION_000, + SMB2_DIALECT_REVISION_202, + SMB2_DIALECT_REVISION_210 + }; c->status = smbcli_sock_connect_recv(creq, state, &sock); if (!composite_is_ok(c)) return; |