From 0d85acdc04789bd3189d0d890675d3e66bce2db8 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 5 Apr 2013 15:14:34 +0200 Subject: LDAP: Always fail if a map can't be found --- src/providers/ldap/sdap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/providers/ldap/sdap.c') diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index dba4e41db..288d2d594 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", -- cgit