From: Volker Lendecke Date: Thu, 9 Feb 2023 16:38:43 +0000 (+0100) Subject: smbd: DBG_DEBUG raw create contexts received from the client X-Git-Tag: talloc-2.4.1~1436 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62651ace1cbdb56206fdd66a58c3f2afd617a893;p=thirdparty%2Fsamba.git smbd: DBG_DEBUG raw create contexts received from the client Got smbd_smb2_request_process_create: Got 2 create blobs [0] [0000] 93 AD 25 50 9C B4 11 E7 B4 23 83 DE 96 8B CD 7C ..%P.... .#.....| [0000] 05 00 00 00 .... [1] [0000] 51 46 69 64 QFid from cifs.ko, trying to find out where the "05 00 00 00" comes from.. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 0f18d5594a4..68abb3f5e82 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -268,6 +268,26 @@ NTSTATUS smbd_smb2_request_process_create(struct smbd_smb2_request *smb2req) return smbd_smb2_request_error(smb2req, status); } + if (CHECK_DEBUGLVL(DBGLVL_DEBUG)) { + char *str = talloc_asprintf( + talloc_tos(), + "\nGot %"PRIu32" create blobs\n", + in_context_blobs.num_blobs); + uint32_t i; + + for (i=0; itag, strlen(b->tag), &str); + dump_data_addbuf( + b->data.data, b->data.length, &str); + } + DBG_DEBUG("%s", str); + TALLOC_FREE(str); + } + tsubreq = smbd_smb2_create_send(smb2req, smb2req->sconn->ev_ctx, smb2req,