From 4aca56cd848df11d79a8a0333d3e9944f176bcd9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 7 Aug 2012 15:50:46 +1000 Subject: s4-smbd: Check for failure of irpc_add_name --- source4/smbd/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/smbd') diff --git a/source4/smbd/server.c b/source4/smbd/server.c index a6ebcd65d8..f3405a7c2a 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -225,7 +225,10 @@ static NTSTATUS setup_parent_messaging(struct tevent_context *event_ctx, cluster_id(0, SAMBA_PARENT_TASKID), event_ctx, false); NT_STATUS_HAVE_NO_MEMORY(msg); - irpc_add_name(msg, "samba"); + status = irpc_add_name(msg, "samba"); + if (!NT_STATUS_IS_OK(status)) { + return status; + } status = IRPC_REGISTER(msg, irpc, SAMBA_TERMINATE, samba_terminate, NULL); -- cgit