summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <pavel.reichl@redhat.com>2013-12-18 14:10:21 +0000
committerJakub Hrozek <jhrozek@redhat.com>2013-12-18 17:03:27 +0100
commit953e10a2f89bf1e21ffd4d8ebc9e1f84fbdb676d (patch)
tree6767aa1324be672860964ae20e3bcf78f4b31e96
parent65b8ace4d8892c85220e5bcf5ae7d92a6517aa65 (diff)
downloadsssd-953e10a2f89bf1e21ffd4d8ebc9e1f84fbdb676d.tar.gz
sssd-953e10a2f89bf1e21ffd4d8ebc9e1f84fbdb676d.tar.xz
sssd-953e10a2f89bf1e21ffd4d8ebc9e1f84fbdb676d.zip
SYSDB: missing conversion of LDB error to errno
-rw-r--r--src/db/sysdb_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 967b467cb..adbe9a158 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -3352,6 +3352,7 @@ errno_t sysdb_search_object_by_sid(TALLOC_CTX *mem_ctx,
basedn, LDB_SCOPE_SUBTREE, attrs?attrs:def_attrs,
SYSDB_SID_FILTER, sid_str);
if (ret != EOK) {
+ ret = sysdb_error_to_errno(ret);
DEBUG(SSSDBG_OP_FAILURE, ("ldb_search failed.\n"));
goto done;
}