mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
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.
This commit is contained in:
parent
236e1f7e8c
commit
506b80c84e
@ -2888,6 +2888,8 @@ virStorageSourceParseBackingJSONGluster(virStorageSourcePtr src,
|
|||||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||||
_("at least 1 server is necessary in "
|
_("at least 1 server is necessary in "
|
||||||
"JSON backing definition for gluster volume"));
|
"JSON backing definition for gluster volume"));
|
||||||
|
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VIR_ALLOC_N(src->hosts, nservers) < 0)
|
if (VIR_ALLOC_N(src->hosts, nservers) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user