Skip to content

Commit fd5274b

Browse files
committed
remove trailing \x00
The trailing \x00 in the request header make the domain name as follow (domain\x00). Which cause a bug when listing domains using qubesadminapi. This bug occured when the icon-receiver is running on guivm other than dom0.
1 parent 9d3bcbc commit fd5274b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

window-icon-updater/icon-receiver

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class IconReceiver(object):
342342
try:
343343
# Parse header from qrexec
344344
header = await reader.readuntil(b'\0')
345-
header_parts = header.decode('ascii').split(' ')
345+
header_parts = header.decode('ascii').split(' ').restrip('\x00')
346346
assert len(header_parts) >= 2, header_parts
347347

348348
service_name = header_parts[0]

0 commit comments

Comments
 (0)