summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-11-14 10:15:33 +0100
committerJeremy Allison <jra@samba.org>2020-11-30 22:24:37 +0000
commitfd12464840e9757c088ebf33e8054f460a332f2e (patch)
tree5701c71093b2b879d44d53c6eeb50aa5910ce0c0 /source3/librpc
parentf53117e03f5f8d523248f537383fa43799aa26e6 (diff)
downloadsamba-fd12464840e9757c088ebf33e8054f460a332f2e.tar.gz
librpc: Make ep_register a bit easier to understand
I found the pointer dereference a bit confusing Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_ep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c
index 454e6bd6637..dfe3ccf5c6b 100644
--- a/source3/librpc/rpc/dcerpc_ep.c
+++ b/source3/librpc/rpc/dcerpc_ep.c
@@ -247,8 +247,8 @@ static NTSTATUS ep_register(TALLOC_CTX *mem_ctx,
}
if (pbh != NULL) {
+ talloc_steal(h, cli);
*pbh = talloc_move(mem_ctx, &h);
- talloc_steal(*pbh, cli);
}
done: