summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-09-17 01:39:23 +0400
committerFrediano Ziglio <freddy77@gmail.com>2020-09-17 06:46:26 +0100
commitfa0c199d3307e05eb7214ba598bf78a952ee4691 (patch)
treebc2e3b46879855331a586c32e31536042a836d82
parent0d7d0d35d814571f078816fb36305de03db642b7 (diff)
agent: fix vdagent monitor flag filtering
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--common/agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/agent.c b/common/agent.c
index 75faee5..e29fdcd 100644
--- a/common/agent.c
+++ b/common/agent.c
@@ -250,8 +250,8 @@ agent_message_monitors_config_from_le(const VDAgentMessage *message_header, uint
{
uint32_from_le(message, sizeof(VDAgentMonitorsConfig), 0);
VDAgentMonitorsConfig *vdata = (VDAgentMonitorsConfig*) message;
- vdata->flags &= ~(VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS|
- VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE);
+ vdata->flags &= VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS|
+ VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE;
size_t element_size = sizeof(vdata->monitors[0]);
if ((vdata->flags & VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE) != 0) {
element_size += sizeof(VDAgentMonitorMM);