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
Tento commit je obsažen v:
Marek Marczykowski-Górecki 2017-02-27 21:43:14 +01:00
rodič 6ab7032b11
revize 2169075807
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 063938BA42CFA724

Zobrazit soubor

@ -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)