summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-17 11:12:10 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-17 11:10:07 -0500
commit3ae9dd80a23168a0451f0d090bd74eaf01fdd951 (patch)
tree077138ada23838a17f48add244d446c4ec89ccb9
parent477cb0304c9fc25d40604de5d49e080ff03938e3 (diff)
downloadsssd-3ae9dd80a23168a0451f0d090bd74eaf01fdd951.tar.gz
sssd-3ae9dd80a23168a0451f0d090bd74eaf01fdd951.tar.bz2
sssd-3ae9dd80a23168a0451f0d090bd74eaf01fdd951.zip
Fix case insensitive service lookups
-rw-r--r--src/responder/nss/nsssrv_services.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index 13d142e4..872b0701 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;