summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-06-14 21:11:10 -0400
committerAndreas Schneider <asn@samba.org>2010-09-15 12:53:41 +0200
commit5ccd7a56fa07426c19905d080d6202d7335b4847 (patch)
tree0f4fe74c3412c864ae0cb8e5098f3f6a60452dff
parent2ef693e3c83fa0ce298ef8b592d7d4c4ec3dd845 (diff)
downloadsamba-5ccd7a56fa07426c19905d080d6202d7335b4847.tar.gz
samba-5ccd7a56fa07426c19905d080d6202d7335b4847.tar.bz2
samba-5ccd7a56fa07426c19905d080d6202d7335b4847.zip
s3-rpc_server: Make process_incoming_data() public.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index d23b18c1f3..76275ea748 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4367,6 +4367,8 @@ struct tevent_req *np_read_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
NTSTATUS np_read_recv(struct tevent_req *req, ssize_t *nread,
bool *is_data_outstanding);
+ssize_t process_incoming_data(struct pipes_struct *p, char *data, size_t n);
+
/* The following definitions come from rpc_server/srv_spoolss_nt.c */
void srv_spoolss_cleanup(void);
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 892ada8867..5ba7f4b785 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -124,7 +124,7 @@ static void free_pipe_context(struct pipes_struct *p)
Accepts incoming data on an rpc pipe. Processes the data in pdu sized units.
****************************************************************************/
-static ssize_t process_incoming_data(struct pipes_struct *p, char *data, size_t n)
+ssize_t process_incoming_data(struct pipes_struct *p, char *data, size_t n)
{
size_t data_to_copy = MIN(n, RPC_MAX_PDU_FRAG_LEN
- p->in_data.pdu.length);