[SSSD] [PATCH] Fix return value of attr_name_val_split()

Sumit Bose sbose at redhat.com
Wed Jun 11 18:54:16 UTC 2014


Hi,

I found this wrong return value. I've checked the other recent posting
and didn't found a patch for this. If someone already send a patch for
this please point me to the right thread so that I can ack it.

bye,
Sumit
-------------- next part --------------
From 9c3d4f637d80448922779b093fc4a2da909054e4 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 11 Jun 2014 20:49:31 +0200
Subject: [PATCH] Fix return value of attr_name_val_split()

---
 src/tools/sss_sync_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index 232a711..667c8a6 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)
-- 
1.8.3.1



More information about the sssd-devel mailing list