mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
ESX raise error if UUID parse failed
* src/esx/esx_util.c: let esxUtil_GetConfigUUID() report an error if virUUIDParse() fails
This commit is contained in:
committed by
Daniel Veillard
parent
ad866fd196
commit
d5df676938
@@ -393,7 +393,11 @@ esxUtil_GetConfigUUID(virConnectPtr conn, virConfPtr conf, const char *name,
|
||||
}
|
||||
}
|
||||
|
||||
virUUIDParse(value->str, uuid);
|
||||
if (virUUIDParse(value->str, uuid) < 0) {
|
||||
ESX_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
|
||||
"Could not parse UUID from string '%s'", value->str);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user