summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-13 15:18:54 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-15 07:35:28 +0100
commitebcfa61d9f712db8400acd722dfc43c07021c9b0 (patch)
tree96272daa19ca08a4f0f8cd5db8c266bb6c647e27 /source4/librpc
parentbb75905b6a6ef48a45039826a7efa0d90e4edbc8 (diff)
downloadsamba-ebcfa61d9f712db8400acd722dfc43c07021c9b0.tar.gz
samba-ebcfa61d9f712db8400acd722dfc43c07021c9b0.tar.bz2
samba-ebcfa61d9f712db8400acd722dfc43c07021c9b0.zip
s4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()
metze
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c5
1 files changed, 1 insertions, 4 deletions
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);