diff options
author | Pavel Reichl <preichl@redhat.com> | 2014-01-28 17:19:07 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-03 12:57:11 +0200 |
commit | 4deef23b3a0e7da0c1ef4f45f792736c056c3123 (patch) | |
tree | 4e9bb3be36511270fcccf840b99d18fc80bd0c6a /src/providers/ldap/sdap_access.c | |
parent | 99736adbc8da137e3ea061436e4d8baf3a015877 (diff) | |
download | sssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.tar.gz sssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.tar.xz sssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.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 db0e878d8..4e1709028 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -666,7 +666,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) { @@ -720,7 +719,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 " |