From 4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Thu, 2 Sep 2010 14:35:58 +0200 Subject: Dead assignments cleanup in various places in SSSD Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590 --- src/monitor/monitor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index caf405612..1c2a058e5 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -981,6 +981,9 @@ static int add_new_service(struct mt_ctx *ctx, const char *name) struct mt_svc *svc; ret = get_service_config(ctx, name, &svc); + if (ret != EOK) { + return ret; + } ret = start_service(svc); if (ret != EOK) { -- cgit