summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-17 22:32:16 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-21 11:22:43 -0400
commit04298e63d9e15a35fd793065c34b716c11c2d31a (patch)
tree83f50c0fa4e09adac2b4617d43c1bb0eade406f2
parent5d7831167ccc418f2dec5d6621ea6f5a20874613 (diff)
downloadsssd-04298e63d9e15a35fd793065c34b716c11c2d31a.tar.gz
sssd-04298e63d9e15a35fd793065c34b716c11c2d31a.tar.xz
sssd-04298e63d9e15a35fd793065c34b716c11c2d31a.zip
NSS: Look for services with correct case when cache is updated
https://fedorahosted.org/sssd/ticket/1259
-rw-r--r--src/responder/nss/nsssrv_services.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index 3e8546b8b..b5eae4fce 100644
--- a/src/responder/nss/nsssrv_services.c
+++ b/src/responder/nss/nsssrv_services.c
@@ -488,27 +488,27 @@ static void lookup_service_done(struct tevent_req *subreq)
goto done;
}
- if (state->cased_name) {
+ if (state->name) {
DEBUG(SSSDBG_TRACE_FUNC,
("Re-checking cache for [%s:%s@%s]\n",
- state->cased_name,
- state->cased_proto ? state->cased_proto : "<ANY>",
+ SVC_NAME_CASED,
+ SVC_PROTO_CASED ? SVC_PROTO_CASED : "<ANY>",
dom->name));
ret = sysdb_getservbyname(state, sysdb,
- state->cased_name,
- state->cased_proto,
+ SVC_NAME_CASED,
+ SVC_PROTO_CASED,
&state->res);
} else {
DEBUG(SSSDBG_TRACE_FUNC,
("Re-checking cache for [%lu:%s@%s]\n",
state->port,
- state->cased_proto ? state->cased_proto : "<ANY>",
+ SVC_PROTO_CASED ? SVC_PROTO_CASED : "<ANY>",
dom->name));
ret = sysdb_getservbyport(state, sysdb,
state->port,
- state->cased_proto,
+ SVC_PROTO_CASED,
&state->res);
}