diff options
| author | Pavel Březina <pbrezina@redhat.com> | 2015-02-23 13:22:57 +0100 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-13 09:56:26 +0100 |
| commit | 997864d4953a655f6ee4fe27b70fdaa30bd7790e (patch) | |
| tree | 5f5854e6f71d75e29b55226dab9074af5b182982 /src | |
| parent | e87b2a6e94c1066b3044fe683825ff5b4f8716c2 (diff) | |
| download | sssd-997864d4953a655f6ee4fe27b70fdaa30bd7790e.tar.gz sssd-997864d4953a655f6ee4fe27b70fdaa30bd7790e.tar.xz sssd-997864d4953a655f6ee4fe27b70fdaa30bd7790e.zip | |
cache_req: return ERR_INTERNAL if more than one entry is found
This means that the db is not in the expected format thus we should
make the error more visible.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/responder/common/responder_cache_req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/common/responder_cache_req.c b/src/responder/common/responder_cache_req.c index 57cb3a81..9d717678 100644 --- a/src/responder/common/responder_cache_req.c +++ b/src/responder/common/responder_cache_req.c @@ -346,7 +346,7 @@ static errno_t cache_req_get_object(TALLOC_CTX *mem_ctx, ret = ENOENT; goto done; } else if (one_item_only && result->count > 1) { - ret = ENOENT; + ret = ERR_INTERNAL; DEBUG(SSSDBG_CRIT_FAILURE, "Multiple objects were found when" "sysdb search expected only one!\n"); goto done; |
