mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
libvirtd: diagnose invalid host UUID
* daemon/libvirtd.c (remoteReadConfigFile): Diagnose an invalid host UUID rather than silently exiting with status 7.
This commit is contained in:
parent
a8f75d2c7d
commit
3db8607f34
@ -2843,8 +2843,10 @@ remoteReadConfigFile (struct qemud_server *server, const char *filename)
|
||||
GET_CONF_INT (conf, filename, max_client_requests);
|
||||
|
||||
GET_CONF_STR (conf, filename, host_uuid);
|
||||
if (virSetHostUUIDStr(host_uuid))
|
||||
if (virSetHostUUIDStr(host_uuid)) {
|
||||
VIR_ERROR(_("invalid host UUID: %s"), host_uuid);
|
||||
goto free_and_fail;
|
||||
}
|
||||
|
||||
VIR_FREE(host_uuid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user