1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

librpc: Add a NULL check to dcerpc_binding_build_tower()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
This commit is contained in:
Volker Lendecke 2021-01-22 19:40:37 +01:00
parent 9374313f03
commit 2e3e297b25

View File

@ -1480,6 +1480,9 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx,
tower->num_floors = 2 + num_protocols;
tower->floors = talloc_array(mem_ctx, struct epm_floor, tower->num_floors);
if (tower->floors == NULL) {
return NT_STATUS_NO_MEMORY;
}
/* Floor 0 */
tower->floors[0].lhs.protocol = EPM_PROTOCOL_UUID;