1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

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
This commit is contained in:
Stefan Metzmacher 2011-11-04 12:52:44 +01:00
parent 4f3e86f623
commit aea76a3aaa

View File

@ -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;