提交 2da7f545 编写于 作者: J Ján Tomko

storage: reject negative capacity

https://bugzilla.redhat.com/show_bug.cgi?id=1436119
上级 eeeaaa0b
......@@ -1063,7 +1063,7 @@ virStorageSize(const char *unit,
const char *val,
unsigned long long *ret)
{
if (virStrToLong_ull(val, NULL, 10, ret) < 0) {
if (virStrToLong_ullp(val, NULL, 10, ret) < 0) {
virReportError(VIR_ERR_XML_ERROR, "%s",
_("malformed capacity element"));
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册