From 659064bbe7b6596b40bd4fc238519cda2636997e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Aug 2013 09:03:05 -0400 Subject: Fix selinux option check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by coverity (CID 11894) Reviewed-by: Günther Deschner --- proxy/src/gp_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proxy/src/gp_socket.c') 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; } -- cgit