summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-07 15:50:46 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-07 17:18:30 +1000
commit4aca56cd848df11d79a8a0333d3e9944f176bcd9 (patch)
tree44e7b25be9c17cf98481d5711194720c0f1f19bc /source4
parentf06c216d0b3ffd036ac10f9abe9b2fe3ff319f09 (diff)
downloadsamba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.tar.gz
samba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.tar.bz2
samba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.zip
s4-smbd: Check for failure of irpc_add_name
Diffstat (limited to 'source4')
-rw-r--r--source4/smbd/server.c5
1 files changed, 4 insertions, 1 deletions
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);