s3:libsmb: the workgroup in the non-extended-security negprot is not aligned (#8573)
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Nov 2011 11:52:44 +0000 (12:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 4 Nov 2011 13:16:28 +0000 (14:16 +0100)
I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0.

metze

source3/libsmb/cliconnect.c

index 049763f821f0c5c06c12a14420d38ebcb86e6126..30403869e73cebaa86be30c4c617f7a9a8a6a705 100644 (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;