diff options
author | Pavel Reichl <preichl@redhat.com> | 2014-01-28 17:19:07 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-03-18 14:01:51 +0100 |
commit | 40dd828529cf01291daf0f075b850783409e8c05 (patch) | |
tree | 21d00c5954a5b6f5ac77822bb1831956ed9d9ed8 /src/providers/ldap/sdap_access.c | |
parent | 424604f0b4d0ce581b598a1ecda2cc4a7e4fd8ad (diff) | |
download | sssd-40dd828529cf01291daf0f075b850783409e8c05.tar.gz sssd-40dd828529cf01291daf0f075b850783409e8c05.tar.xz sssd-40dd828529cf01291daf0f075b850783409e8c05.zip |
refactor calls of sss_parse_name
sss_parse_name now supports NULL as output parameters so existing calls passing
arguments which were never read were substituted by NULL.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_access.c')
-rw-r--r-- | src/providers/ldap/sdap_access.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index 65876ba41..62a087f46 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -665,7 +665,6 @@ static struct tevent_req *sdap_access_filter_send(TALLOC_CTX *mem_ctx, char *clean_username; errno_t ret = ERR_INTERNAL; char *name; - char *domname; req = tevent_req_create(mem_ctx, &state, struct sdap_access_filter_req_ctx); if (req == NULL) { @@ -719,7 +718,7 @@ static struct tevent_req *sdap_access_filter_send(TALLOC_CTX *mem_ctx, /* Construct the filter */ /* Subdomain users are identified by FQDN. We need to use just the username */ - ret = sss_parse_name(state, domain->names, username, &domname, &name); + ret = sss_parse_name(state, domain->names, username, NULL, &name); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, "Could not parse [%s] into name and " |