diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-11-04 12:52:44 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-04 14:16:28 +0100 |
commit | aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34 (patch) | |
tree | 110631c5df8b17df781d057d8a1d4c860e6a12f6 | |
parent | 4f3e86f62398218c454b979aaad75c7d7d3d8546 (diff) | |
download | samba-aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34.tar.gz samba-aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34.tar.bz2 samba-aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34.zip |
s3:libsmb: the workgroup in the non-extended-security negprot is not aligned (#8573)
I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0.
metze
-rw-r--r-- | source3/libsmb/cliconnect.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 049763f821..30403869e7 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2736,8 +2736,11 @@ static void cli_negprot_done(struct tevent_req *subreq) (char *)inbuf, SVAL(inbuf, smb_flg2), &server_workgroup, - blob1.data, blob1.length, - STR_TERMINATE); + blob1.data, + blob1.length, + STR_TERMINATE| + STR_UNICODE| + STR_NOALIGN); if (ret == -1) { tevent_req_oom(req); return; |