diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 900b5a3..a71a484 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3757,6 +3757,20 @@
     {
         unsigned int pip_flags = PIPV4_PASSTOS | PIPV6_ICMP_NOHOST_SERVER;
 
+#ifdef USE_COMP
+        /* the compression byte swap changes the packet in place, so
+         * don't let it touch a buffer that other recipients still have
+         * queued */
+        const struct compress_context *comp = item.instance->context.c2.comp_context;
+        if (item.buffer->refcount > 1 && comp && (comp->flags & COMP_F_SWAP))
+        {
+            struct mbuf_buffer *mb = mbuf_alloc_buf(&item.buffer->buf);
+            mb->flags = item.buffer->flags;
+            mbuf_free_buf(item.buffer);
+            item.buffer = mb;
+        }
+#endif
+
         set_prefix(item.instance);
         item.instance->context.c2.buf = item.buffer->buf;
         if (item.buffer->flags
