diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-02-17 11:12:10 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-17 11:10:04 -0500 |
commit | 79c5dc32527bc77703264e4fe0572a497a371618 (patch) | |
tree | d591cb1de068996ba3dbc1a337abecdda9fecf18 | |
parent | 42a3ceef28c4e3b629298efea00b57d41356a177 (diff) | |
download | sssd-79c5dc32527bc77703264e4fe0572a497a371618.tar.gz sssd-79c5dc32527bc77703264e4fe0572a497a371618.tar.xz sssd-79c5dc32527bc77703264e4fe0572a497a371618.zip |
Fix case insensitive service lookups
-rw-r--r-- | src/responder/nss/nsssrv_services.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c index 13d142e44..872b0701f 100644 --- a/src/responder/nss/nsssrv_services.c +++ b/src/responder/nss/nsssrv_services.c @@ -51,10 +51,10 @@ struct getserv_ctx { static errno_t lookup_service_step(struct tevent_req *req); static void lookup_service_done(struct tevent_req *req); -#define SVC_NAME_CASED (dom->case_sensitive ? state->cased_name \ - : state->name) -#define SVC_PROTO_CASED (dom->case_sensitive ? state->cased_proto \ - : state->proto) +#define SVC_NAME_CASED (dom->case_sensitive ? state->name \ + : state->cased_name) +#define SVC_PROTO_CASED (dom->case_sensitive ? state->proto \ + : state->cased_proto) /* Provider Lookup Logic: * Iterate through the available caches. If the cached entry is @@ -125,7 +125,7 @@ getserv_send(TALLOC_CTX *mem_ctx, goto immediate; } state->cased_proto = sss_get_cased_name(state, service_protocol, - true); + false); if (!state->cased_proto) { ret = ENOMEM; goto immediate; @@ -148,7 +148,7 @@ getserv_send(TALLOC_CTX *mem_ctx, } state->cased_name = sss_get_cased_name(state, service_name, - true); + false); if (!state->cased_name) { ret = ENOMEM; goto immediate; |