From c66110cf33758ee0da035a05585195621b60a393 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 8 Jul 2020 13:59:26 +0200 Subject: s3:smbd: setup client->global->client_guid even without multichannel support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's too confusing if client->global->client_guid and client->connections->smb2.client.guid don't have the same value. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- source3/smbd/smb2_negprot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index 2c1d4185b28..4071f42b5e0 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -657,7 +657,13 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req) /* * Only deal with the client guid database * if multi-channel is enabled. + * + * But we still need to setup + * xconn->client->global->client_guid to + * the correct value. */ + xconn->client->global->client_guid = + xconn->smb2.client.guid; return smbd_smb2_request_done(req, outbody, &outdyn); } -- cgit v1.2.1