From c9f94bc64ed7dfbaef5a520bfc4e911c5d0ad6fe Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 11 Jun 2014 20:49:31 +0200 Subject: Fix return value of attr_name_val_split() and attr_op() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Lukáš Slebodník --- src/tools/sss_sync_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c index 232a711d..fd401cb4 100644 --- a/src/tools/sss_sync_ops.c +++ b/src/tools/sss_sync_ops.c @@ -83,7 +83,7 @@ static int attr_name_val_split(TALLOC_CTX *mem_ctx, const char *nameval, ret = EOK; done: talloc_free(tmp_ctx); - return EOK; + return ret; } static int attr_op(struct ops_ctx *octx, const char *nameval, int op) @@ -131,7 +131,7 @@ static int attr_op(struct ops_ctx *octx, const char *nameval, int op) ret = sysdb_set_user_attr(octx->domain, octx->name, attrs, op); done: talloc_free(tmp_ctx); - return EOK; + return ret; } /* * Generic modify groups member -- cgit