提交 506b80c8 编写于 作者: P Peter Krempa

util: storage: Add missing return to virStorageSourceParseBackingJSONGluster

If the number of servers is not expected the code would report an error
but would not return failure.
上级 236e1f7e
......@@ -2888,6 +2888,8 @@ virStorageSourceParseBackingJSONGluster(virStorageSourcePtr src,
virReportError(VIR_ERR_INVALID_ARG, "%s",
_("at least 1 server is necessary in "
"JSON backing definition for gluster volume"));
return -1;
}
if (VIR_ALLOC_N(src->hosts, nservers) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册