summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_search.c
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-07-11 15:21:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-09-05 11:34:50 +0200
commit61602026ed8c91efd166000562899670449f1b50 (patch)
tree0471bd109d97c06e8fed36ce20e65d17767add5b /src/db/sysdb_search.c
parent2344d7f71dd80618a41745b0818b46895fa61b2c (diff)
downloadsssd-61602026ed8c91efd166000562899670449f1b50.tar.gz
sssd-61602026ed8c91efd166000562899670449f1b50.tar.xz
sssd-61602026ed8c91efd166000562899670449f1b50.zip
SYSDB: SSS_LDB_SEARCH - macro around ldb_search
This patch amends previous patch 5153e8b9793dea1e212ca08af0f77ea1d023cbb7. Macro SSS_LDB_SEARCH is used instead of using fuction sss_ldb_search as a wrapper around ldb_search which could lead to premature expansion of variadic parameters. Part of solution for: https://fedorahosted.org/sssd/ticket/1991 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/db/sysdb_search.c')
-rw-r--r--src/db/sysdb_search.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index ff14c4a98..3d789ae85 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -815,11 +815,11 @@ errno_t sysdb_getnetgr(TALLOC_CTX *mem_ctx,
goto done;
}
- ret = sss_ldb_search(domain->sysdb->ldb, tmp_ctx, &result, base_dn,
- LDB_SCOPE_SUBTREE, attrs,
- SYSDB_NETGR_TRIPLES_FILTER, lc_sanitized_netgroup,
- sanitized_netgroup, sanitized_netgroup,
- netgroup_dn);
+ SSS_LDB_SEARCH(ret, domain->sysdb->ldb, tmp_ctx, &result, base_dn,
+ LDB_SCOPE_SUBTREE, attrs,
+ SYSDB_NETGR_TRIPLES_FILTER, lc_sanitized_netgroup,
+ sanitized_netgroup, sanitized_netgroup,
+ netgroup_dn);
if (ret == EOK || ret == ENOENT) {
*res = talloc_steal(mem_ctx, result);