提交 d5df6769 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

ESX raise error if UUID parse failed

* src/esx/esx_util.c: let esxUtil_GetConfigUUID() report an error if
  virUUIDParse() fails
上级 ad866fd1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册