From b693f4680a3dfadc2289ca1b1d83725f395bec49 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 15 May 2013 12:11:30 -0400 Subject: Fix secondary socket detection at runtime. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were failing to find the right service as the test was reversed. It works with the default socket as it is not stored per service. Signed-off-by: Simo Sorce Reviewed-by: Günther Deschner --- proxy/src/gp_creds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c index e6c12a5..0dd54f0 100644 --- a/proxy/src/gp_creds.c +++ b/proxy/src/gp_creds.c @@ -104,7 +104,7 @@ struct gp_service *gp_creds_match_conn(struct gssproxy_ctx *gpctx, for (i = 0; i < gpctx->config->num_svcs; i++) { if (gpctx->config->svcs[i]->euid == gcs->ucred.uid) { if (gpctx->config->svcs[i]->socket && - gp_same(socket, gpctx->config->svcs[i]->socket)) { + !gp_same(socket, gpctx->config->svcs[i]->socket)) { continue; } return gpctx->config->svcs[i]; -- cgit