[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Jun 16 11:28:49 MDT 2010


The branch, master has been updated
       via  7e388c8... Remove an unused chunk of code (will make it easier to talloc'ize prs_XXX).
      from  5a77d64... Remove two unused functions (prs_force_dynamic, prs_set_session_key).

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7e388c8b2763a11aac50b390ccd3697a15b5be65
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Jun 16 10:27:54 2010 -0700

    Remove an unused chunk of code (will make it easier to talloc'ize prs_XXX).
    
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_server/srv_pipe.c |   49 -----------------------------------------
 1 files changed, 0 insertions(+), 49 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index d1f9823..65251ec 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -969,55 +969,6 @@ bool setup_fault_pdu(pipes_struct *p, NTSTATUS status)
 	return True;
 }
 
-#if 0
-/*******************************************************************
- Marshall a cancel_ack pdu.
- We should probably check the auth-verifier here.
-*******************************************************************/
-
-bool setup_cancel_ack_reply(pipes_struct *p, prs_struct *rpc_in_p)
-{
-	prs_struct outgoing_pdu;
-	RPC_HDR ack_reply_hdr;
-
-	/* Free any memory in the current return data buffer. */
-	prs_mem_free(&p->out_data.rdata);
-
-	/*
-	 * Marshall directly into the outgoing PDU space. We
-	 * must do this as we need to set to the bind response
-	 * header and are never sending more than one PDU here.
-	 */
-
-	prs_init_empty( &outgoing_pdu, p->mem_ctx, MARSHALL);
-	prs_give_memory( &outgoing_pdu, (char *)p->out_data.current_pdu, sizeof(p->out_data.current_pdu), False);
-
-	/*
-	 * Initialize a cancel_ack header.
-	 */
-
-	init_rpc_hdr(&ack_reply_hdr, DCERPC_PKT_CANCEL_ACK, DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST,
-			p->hdr.call_id, RPC_HEADER_LEN, 0);
-
-	/*
-	 * Marshall the header into the outgoing PDU.
-	 */
-
-	if(!smb_io_rpc_hdr("", &ack_reply_hdr, &outgoing_pdu, 0)) {
-		DEBUG(0,("setup_cancel_ack_reply: marshalling of RPC_HDR failed.\n"));
-		prs_mem_free(&outgoing_pdu);
-		return False;
-	}
-
-	p->out_data.data_sent_length = 0;
-	p->out_data.current_pdu_len = prs_offset(&outgoing_pdu);
-	p->out_data.current_pdu_sent = 0;
-
-	prs_mem_free(&outgoing_pdu);
-	return True;
-}
-#endif
-
 /*******************************************************************
  Ensure a bind request has the correct abstract & transfer interface.
  Used to reject unknown binds from Win2k.


-- 
Samba Shared Repository


More information about the samba-cvs mailing list