From 04298e63d9e15a35fd793065c34b716c11c2d31a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sat, 17 Mar 2012 22:32:16 +0100 Subject: NSS: Look for services with correct case when cache is updated https://fedorahosted.org/sssd/ticket/1259 --- src/responder/nss/nsssrv_services.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/responder') 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 : "", + SVC_NAME_CASED, + SVC_PROTO_CASED ? SVC_PROTO_CASED : "", 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 : "", + SVC_PROTO_CASED ? SVC_PROTO_CASED : "", dom->name)); ret = sysdb_getservbyport(state, sysdb, state->port, - state->cased_proto, + SVC_PROTO_CASED, &state->res); } -- cgit