From f247d7f0da73d33b3998b5982c16a8e38074ba06 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 26 Jan 2022 05:29:53 -0500 Subject: [PATCH] [host] app: don't read from UUID if none is returned This allows the Linux host to start. --- host/src/app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/src/app.c b/host/src/app.c index 615c2dab..263e44c6 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -581,7 +581,8 @@ static bool newKVMFRData(KVMFRUserData * dst) }; const uint8_t * uuid = os_getUUID(); - memcpy(vmInfo.uuid, uuid, 16); + if (uuid) + memcpy(vmInfo.uuid, uuid, 16); strncpy(vmInfo.capture, app.iface->getName(), sizeof(vmInfo.capture) - 1);