From 216907580736b749d28d6f9950d89700191cef54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 27 Feb 2017 21:43:14 +0100 Subject: [PATCH] qubesd: fix response message header Type is not 16 bit big-endian. Encode it as 8bit code and \x00 as delimiter explicitly. QubesOS/qubes-issues#853 --- qubes/tools/qubesd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/tools/qubesd.py b/qubes/tools/qubesd.py index 916a1c72..e2b9bfc1 100644 --- a/qubes/tools/qubesd.py +++ b/qubes/tools/qubesd.py @@ -19,7 +19,7 @@ QUBESD_SOCK = '/var/run/qubesd.sock' class QubesDaemonProtocol(asyncio.Protocol): buffer_size = 65536 - header = struct.Struct('!H') + header = struct.Struct('Bx') def __init__(self, *args, app, debug=False, **kwargs): super().__init__(*args, **kwargs)