diff options
-rw-r--r-- | libaxl_receive.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libaxl_receive.c b/libaxl_receive.c index 2d79f64..797ba06 100644 --- a/libaxl_receive.c +++ b/libaxl_receive.c @@ -245,6 +245,7 @@ libaxl_receive(LIBAXL_CONTEXT *restrict ctx, union libaxl_input *restrict msgp, } code = *(uint8_t *)inbuf; + code &= 0x7F; /* Synthetic events have the highest bit set. */ if (code == LIBAXL_REPLY) { n = (uint64_t)ntohl(*(uint32_t *)&inbuf[4]); |