summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-21 19:56:36 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-22 17:10:05 -0700
commit5d16b9c1bf3476ce24a48bd2796111e7e27c2064 (patch)
tree8399a8d8c0ac6e6e555909d7aa7c3609ef0e4bf9 /source4/rpc_server
parent2e98ee0907474990e2929c892f5ead731d7ddb34 (diff)
downloadsamba-5d16b9c1bf3476ce24a48bd2796111e7e27c2064.tar.gz
samba-5d16b9c1bf3476ce24a48bd2796111e7e27c2064.tar.bz2
samba-5d16b9c1bf3476ce24a48bd2796111e7e27c2064.zip
s4-rpc: remove two unused functions
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c35
1 files changed, 3 insertions, 32 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index e055d1671b..97ed0a0d53 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -632,7 +632,9 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
if (call->context) {
pkt.u.bind_ack.assoc_group_id = call->context->assoc_group_id;
} else {
- /* we better pick something - this chosen so as to send a non zero assoc_group_id (matching windows), it also matches samba3 */
+ /* we better pick something - this chosen so as to
+ * send a non zero assoc_group_id (matching windows),
+ * it also matches samba3 */
pkt.u.bind_ack.assoc_group_id = SAMBA_ASSOC_GROUP;
}
@@ -1053,37 +1055,6 @@ _PUBLIC_ struct socket_address *dcesrv_connection_get_peer_addr(struct dcesrv_co
return conn->transport.get_peer_addr(conn, mem_ctx);
}
-/*
- work out if we have a full packet yet
-*/
-static bool dce_full_packet(const DATA_BLOB *data)
-{
- if (data->length < DCERPC_FRAG_LEN_OFFSET+2) {
- return false;
- }
- if (dcerpc_get_frag_length(data) > data->length) {
- return false;
- }
- return true;
-}
-
-/*
- we might have consumed only part of our input - advance past that part
-*/
-static void dce_partial_advance(struct dcesrv_connection *dce_conn, uint32_t offset)
-{
- DATA_BLOB blob;
-
- if (dce_conn->partial_input.length == offset) {
- data_blob_free(&dce_conn->partial_input);
- return;
- }
-
- blob = dce_conn->partial_input;
- dce_conn->partial_input = data_blob(blob.data + offset,
- blob.length - offset);
- data_blob_free(&blob);
-}
/*
remove the call from the right list when freed