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:
Matthias Bolte 2009-09-04 18:32:44 +02:00 committed by Daniel Veillard
parent ad866fd196
commit d5df676938

View File

@ -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;
}