summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-08-04 15:48:56 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-08-06 10:22:11 +0200
commite14cad512af789c78ab56c6f205f77a20a151316 (patch)
treee049787230508f7c6ed8bee57ddf99c9e2ddce1a
parentd5903e1982525d27cb135899c8827ec253599d8c (diff)
downloadsssd-e14cad512af789c78ab56c6f205f77a20a151316.tar.gz
sssd-e14cad512af789c78ab56c6f205f77a20a151316.tar.xz
sssd-e14cad512af789c78ab56c6f205f77a20a151316.zip
LDAP: Avoid undefined ret value
If the LDAP schema was set to a different value than AD and ID mapping was enabled, the value of ret was not defined. Make sure we define ret for the condition below with the default for ID mapping which is 'no GID' Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r--src/providers/ldap/sdap_async_nested_groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_nested_groups.c b/src/providers/ldap/sdap_async_nested_groups.c
index 5398b14bc..18a811c77 100644
--- a/src/providers/ldap/sdap_async_nested_groups.c
+++ b/src/providers/ldap/sdap_async_nested_groups.c
@@ -240,7 +240,7 @@ sdap_nested_group_hash_group(struct sdap_nested_group_ctx *group_ctx,
{
struct sdap_attr_map *map = group_ctx->opts->group_map;
gid_t gid;
- errno_t ret;
+ errno_t ret = ENOENT;
int32_t ad_group_type;
bool posix_group = true;
bool use_id_mapping;