diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-05 15:14:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-09 11:18:57 +0200 |
commit | 0d85acdc04789bd3189d0d890675d3e66bce2db8 (patch) | |
tree | 0dd89e82f6f2110202ec2d79e0684a88530fad48 /src | |
parent | a28391f68a09eaedbe1a515f513ca56bbb94d7a5 (diff) | |
download | sssd-0d85acdc04789bd3189d0d890675d3e66bce2db8.tar.gz sssd-0d85acdc04789bd3189d0d890675d3e66bce2db8.tar.bz2 sssd-0d85acdc04789bd3189d0d890675d3e66bce2db8.zip |
LDAP: Always fail if a map can't be found
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index dba4e41d..288d2d59 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", |