>From b32ab72a7a1d43dc895993605d7ed82758b6fce1 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 5 Apr 2013 15:14:34 +0200 Subject: [PATCH] LDAP: Always fail if a map can't be found --- src/providers/ldap/sdap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index dba4e41db0039632939f275f9295321afe7a31ae..288d2d594a1401e9dbcc40b92cb68e946322791e 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -77,10 +77,8 @@ int sdap_get_map(TALLOC_CTX *memctx, if (map[i].def_name && !map[i].name) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to retrieve value for %s\n", map[i].opt_name)); - if (ret != EOK) { - talloc_zfree(map); - return EINVAL; - } + talloc_zfree(map); + return EINVAL; } DEBUG(SSSDBG_TRACE_FUNC, ("Option %s has%s value %s\n", -- 1.8.1.4