summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-05-15 12:11:30 -0400
committerSimo Sorce <simo@redhat.com>2013-05-16 06:11:42 -0400
commitb693f4680a3dfadc2289ca1b1d83725f395bec49 (patch)
treef66c5fd6934dd49e0d44c7eb822398761a0cf3c8
parent94d395f36e996f19d7e10a54c734f8bc0dc21da1 (diff)
downloadgss-proxy-b693f4680a3dfadc2289ca1b1d83725f395bec49.tar.gz
gss-proxy-b693f4680a3dfadc2289ca1b1d83725f395bec49.tar.xz
gss-proxy-b693f4680a3dfadc2289ca1b1d83725f395bec49.zip
Fix secondary socket detection at runtime.
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 <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
-rw-r--r--proxy/src/gp_creds.c2
1 files changed, 1 insertions, 1 deletions
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];