]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_server: Avoid a pointless ZERO_STRUCTP
authorVolker Lendecke <vl@samba.org>
Sun, 10 Jan 2021 12:10:47 +0000 (13:10 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Jan 2021 00:10:30 +0000 (00:10 +0000)
We've done talloc_zero() 4 lines above.

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

index 1d0c9c75ab6677a10daa71f33cd2bce90d0e3212..f7e230b689fdbffec92842758e1a3f7c8aa9ce4f 100644 (file)
@@ -315,7 +315,6 @@ _PUBLIC_ NTSTATUS dcesrv_interface_register(struct dcesrv_context *dce_ctx,
                if (!ep) {
                        return NT_STATUS_NO_MEMORY;
                }
-               ZERO_STRUCTP(ep);
                ep->ep_description = talloc_move(ep, &binding);
                ep->ep_2nd_description = talloc_move(ep, &binding2);
                add_ep = true;