From aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 4 Nov 2011 12:52:44 +0100 Subject: 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 --- source3/libsmb/cliconnect.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/libsmb') 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; -- cgit