[SSSD] [PATCH] Use proper errno code

Jakub Hrozek jhrozek at redhat.com
Mon Mar 5 12:09:42 UTC 2012


Found this when looking for an unrelated nested groups issue.
-------------- next part --------------
From 1bffa788b05911eb2d3c07cc8ca96a3566c995ee Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 5 Mar 2012 13:04:53 +0100
Subject: [PATCH] Use proper errno code

---
 src/providers/ldap/sdap_async_initgroups.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 1e2e6178d0883dc37208db0732b45a8b3eafb6a8..a4cac9532aba25ba9c415e886ac617e86a1fd38e 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2204,7 +2204,7 @@ static void rfc2307bis_nested_groups_process(struct tevent_req *subreq)
                                struct sysdb_attrs *,
                                state->parents_count + count + 1);
         if (!state->ldap_parents) {
-            tevent_req_error(req, ret);
+            tevent_req_error(req, ENOMEM);
             return;
         }
 
-- 
1.7.7.6



More information about the sssd-devel mailing list