From: Volker Lendecke Date: Wed, 24 Dec 2025 10:01:36 +0000 (+0100) Subject: librpc: Slightly simplify dcerpc_binding_build_tower() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f348b32fb18fe9a0047f04dd6f445c022ba1a128;p=thirdparty%2Fsamba.git librpc: Slightly simplify dcerpc_binding_build_tower() Use the implicit NULLing out of the other struct elements Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index e0d66303583..f7b47db57e5 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -1467,9 +1467,9 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, /* Floor 2 to num_protocols */ for (i = 0; i < num_protocols; i++) { - tower->floors[2 + i].lhs.protocol = protseq[i]; - tower->floors[2 + i].lhs.lhs_data = data_blob_null; - ZERO_STRUCT(tower->floors[2 + i].rhs); + tower->floors[2 + i] = (struct epm_floor) { + .lhs.protocol = protseq[i], + }; status = dcerpc_floor_set_rhs_data(tower->floors, &tower->floors[2 + i], NULL);