mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: smbd: Rename create_outbuf() -> create_smb1_outbuf()
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Mulder <dmulder@suse.com>
This commit is contained in:
parent
c453cfbf87
commit
97fd5e56c0
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user