summaryrefslogtreecommitdiff
path: root/source3/smbd/message.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-02 01:07:46 +0100
committerVolker Lendecke <vl@samba.org>2008-11-02 09:22:40 +0100
commita31fab81568ed2b4314ea05740423aceb5d7c977 (patch)
tree8b4c061cc881025cdf8ccb5de9cdcad796c2b555 /source3/smbd/message.c
parent2bd5ac86ffc9f7610b0205092e4cc9cdccb4752f (diff)
downloadsamba-a31fab81568ed2b4314ea05740423aceb5d7c977.tar.gz
samba-a31fab81568ed2b4314ea05740423aceb5d7c977.tar.bz2
samba-a31fab81568ed2b4314ea05740423aceb5d7c977.zip
Simplify params of srvstr_pull_buf_talloc()
Now that "req" is available everywhere, use it. Rename srvstr_pull_buf_talloc() to srvstr_pull_req()
Diffstat (limited to 'source3/smbd/message.c')
-rw-r--r--source3/smbd/message.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/source3/smbd/message.c b/source3/smbd/message.c
index 6977b586df..347370e40c 100644
--- a/source3/smbd/message.c
+++ b/source3/smbd/message.c
@@ -154,12 +154,10 @@ void reply_sends(struct smb_request *req)
state = talloc(talloc_tos(), struct msg_state);
p = (const char *)req->buf + 1;
- p += srvstr_pull_buf_talloc(
- state, (char *)req->inbuf, req->flags2, &state->from, p,
- STR_ASCII|STR_TERMINATE) + 1;
- p += srvstr_pull_buf_talloc(
- state, (char *)req->inbuf, req->flags2, &state->to, p,
- STR_ASCII|STR_TERMINATE) + 1;
+ p += srvstr_pull_req_talloc(
+ state, req, &state->from, p, STR_ASCII|STR_TERMINATE) + 1;
+ p += srvstr_pull_req_talloc(
+ state, req, &state->to, p, STR_ASCII|STR_TERMINATE) + 1;
msg = p;
@@ -212,12 +210,12 @@ void reply_sendstrt(struct smb_request *req)
}
p = (const char *)req->buf+1;
- p += srvstr_pull_buf_talloc(
- smbd_msg_state, (char *)req->inbuf, req->flags2,
- &smbd_msg_state->from, p, STR_ASCII|STR_TERMINATE) + 1;
- p += srvstr_pull_buf_talloc(
- smbd_msg_state, (char *)req->inbuf, req->flags2,
- &smbd_msg_state->to, p, STR_ASCII|STR_TERMINATE) + 1;
+ p += srvstr_pull_req_talloc(
+ smbd_msg_state, req, &smbd_msg_state->from, p,
+ STR_ASCII|STR_TERMINATE) + 1;
+ p += srvstr_pull_req_talloc(
+ smbd_msg_state, req, &smbd_msg_state->to, p,
+ STR_ASCII|STR_TERMINATE) + 1;
DEBUG( 3, ( "SMBsendstrt (from %s to %s)\n", smbd_msg_state->from,
smbd_msg_state->to ) );