]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Rename create_outbuf() -> create_smb1_outbuf()
authorJeremy Allison <jra@samba.org>
Tue, 5 Apr 2022 01:45:44 +0000 (18:45 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:30 +0000 (17:37 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
source3/smbd/proto.h
source3/smbd/smb1_process.c
source3/smbd/smb2_process.c

index 6096b198d4d6234e61991b19fcd255656e20b182..02736e56c48991c497c4cb80b9290a4e91cde499 100644 (file)
@@ -883,7 +883,7 @@ bool push_deferred_open_message_smb(struct smb_request *req,
                                    struct timeval timeout,
                                    struct file_id id,
                                    struct deferred_open_record *open_rec);
-bool create_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
+bool create_smb1_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
                    const uint8_t *inbuf, char **outbuf,
                    uint8_t num_words, uint32_t num_bytes);
 void construct_smb1_reply_common_req(struct smb_request *req, char *outbuf);
index c8957ef6b92a2edb567c765c0fa04291e66c51b2..fcb5bcd1efcd8535e395506dd7385b2b36ad6d46 100644 (file)
@@ -2374,9 +2374,9 @@ static bool smbd_echo_reply(struct smbd_echo_state *state,
                return false;
        }
 
-       if (!create_outbuf(talloc_tos(), &req, req.inbuf, &outbuf,
+       if (!create_smb1_outbuf(talloc_tos(), &req, req.inbuf, &outbuf,
                           1, req.buflen)) {
-               DEBUG(10, ("create_outbuf failed\n"));
+               DEBUG(10, ("create_smb1_outbuf failed\n"));
                return false;
        }
        req.outbuf = (uint8_t *)outbuf;
index 0b050a21aaa31ff91ce522ba7ace4fa796389a91..42ac04b2d79fa983b400a5760afbf78d1e3d682e 100644 (file)
@@ -517,7 +517,7 @@ void construct_smb1_reply_common_req(struct smb_request *req, char *outbuf)
  allocate and initialize a reply packet
 ********************************************************************/
 
-bool create_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
+bool create_smb1_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
                   const uint8_t *inbuf, char **outbuf,
                   uint8_t num_words, uint32_t num_bytes)
 {
@@ -561,7 +561,7 @@ bool create_outbuf(TALLOC_CTX *mem_ctx, struct smb_request *req,
 void reply_outbuf(struct smb_request *req, uint8_t num_words, uint32_t num_bytes)
 {
        char *outbuf;
-       if (!create_outbuf(req, req, req->inbuf, &outbuf, num_words,
+       if (!create_smb1_outbuf(req, req, req->inbuf, &outbuf, num_words,
                           num_bytes)) {
                smb_panic("could not allocate output buffer\n");
        }