summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/cliconnect.c7
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;