From b66e5721890de1f71707809d2a2f8b527184a331 Mon Sep 17 00:00:00 2001 From: Jed Date: Mon, 23 Nov 2015 18:05:19 -0500 Subject: [PATCH] OXT-439: fix the broken logic Signed-off-by: Jed --- src/rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc.c b/src/rpc.c index 32ff943..14c6873 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -251,7 +251,7 @@ gboolean ctxusb_daemon_get_device_info(CtxusbDaemonObject *this, char *uuid = policy_get_sticky_uuid(IN_dev_id); if (uuid != NULL) { /* But it has an always-assign VM */ - if (device->type | OPTICAL) + if (device->type & OPTICAL) /* It's a CD drive */ *OUT_state = DEV_STATE_CD_ALWAYS; else { @@ -266,7 +266,7 @@ gboolean ctxusb_daemon_get_device_info(CtxusbDaemonObject *this, *OUT_vm_assigned = g_strdup(uuid); } else { /* It doesn't have an always-assign VM, it's all free */ - if (device->type | OPTICAL) + if (device->type & OPTICAL) /* Unless it's a CD drive */ *OUT_state = DEV_STATE_CD_DOM0; else