From ebcfa61d9f712db8400acd722dfc43c07021c9b0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Mar 2012 15:18:54 +0100 Subject: s4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send() metze --- source4/librpc/rpc/dcerpc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 5bcc5f5a07..ebf6f33aa5 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -1503,10 +1503,7 @@ static struct rpc_request *dcerpc_request_send(TALLOC_CTX *mem_ctx, req->opnum = opnum; req->request_data.length = stub_data->length; - req->request_data.data = talloc_reference(req, stub_data->data); - if (req->request_data.length && req->request_data.data == NULL) { - return NULL; - } + req->request_data.data = stub_data->data; DLIST_ADD_END(p->conn->request_queue, req, struct rpc_request *); talloc_set_destructor(req, dcerpc_req_dequeue); -- cgit