diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2010-09-02 14:35:58 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-08 09:36:22 -0400 |
commit | 4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 (patch) | |
tree | b75a38b0012a84fc89419095c0ab2d392a2ed490 /src/monitor | |
parent | 039d997b19cffa2f5428bb3d85669ebc5888307a (diff) | |
download | sssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.tar.gz sssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.tar.bz2 sssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.zip |
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
Diffstat (limited to 'src/monitor')
-rw-r--r-- | src/monitor/monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index caf40561..1c2a058e 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) { |