diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-07 15:50:46 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-07 17:18:30 +1000 |
commit | 4aca56cd848df11d79a8a0333d3e9944f176bcd9 (patch) | |
tree | 44e7b25be9c17cf98481d5711194720c0f1f19bc | |
parent | f06c216d0b3ffd036ac10f9abe9b2fe3ff319f09 (diff) | |
download | samba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.tar.gz samba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.tar.bz2 samba-4aca56cd848df11d79a8a0333d3e9944f176bcd9.zip |
s4-smbd: Check for failure of irpc_add_name
-rw-r--r-- | source4/smbd/server.c | 5 |
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); |