From: Volker Lendecke Date: Sun, 10 Jan 2021 12:10:47 +0000 (+0100) Subject: rpc_server: Avoid a pointless ZERO_STRUCTP X-Git-Tag: samba-4.14.0rc1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d387fb6d771fd74cca84693ecfb45c07baa294;p=thirdparty%2Fsamba.git rpc_server: Avoid a pointless ZERO_STRUCTP We've done talloc_zero() 4 lines above. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c index 1d0c9c75ab6..f7e230b689f 100644 --- a/librpc/rpc/dcesrv_core.c +++ b/librpc/rpc/dcesrv_core.c @@ -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;