]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Make ep_register a bit easier to understand
authorVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2020 09:15:33 +0000 (10:15 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:37 +0000 (22:24 +0000)
I found the pointer dereference a bit confusing

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/rpc/dcerpc_ep.c

index 454e6bd66372173ffc40f0589206c70bae3159e5..dfe3ccf5c6b78ab7e9f3f710b1f2da7df1466c6e 100644 (file)
@@ -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: