summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--proxy/src/gp_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
index 24eed28..521a2ee 100644
--- a/proxy/src/gp_socket.c
+++ b/proxy/src/gp_socket.c
@@ -70,7 +70,7 @@ bool gp_conn_check_selinux(struct gp_conn *conn, SELINUX_CTX ctx)
return true;
}
- if (!(conn->creds.type | CRED_TYPE_SELINUX) ||
+ if (!(conn->creds.type & CRED_TYPE_SELINUX) ||
(conn->selinux_ctx == NULL)) {
return false;
}