mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
messaging4: Add NULL check to irpc_add_name
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
658b7ec4ee
commit
1603d2df59
@ -940,6 +940,9 @@ NTSTATUS irpc_add_name(struct imessaging_context *msg_ctx, const char *name)
|
||||
}
|
||||
|
||||
msg_ctx->names = str_list_add(msg_ctx->names, name);
|
||||
if (msg_ctx->names == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
talloc_steal(msg_ctx, msg_ctx->names);
|
||||
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user