summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/messaging/messaging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index e7b1e9d6cd..5def9d1f73 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -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;