mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
conf: Fix usage of virBitmapParse
virNetworkObjUpdateParseFile used ',' as the termination character for virBitmapParse. This would break if an non-contiguous range would be parsed.
This commit is contained in:
parent
4004977fbf
commit
bf62e9953c
@ -1856,7 +1856,7 @@ virNetworkObjUpdateParseFile(const char *filename,
|
||||
ctxt->node = node;
|
||||
class_id = virXPathString("string(./class_id[1]/@bitmap)", ctxt);
|
||||
if (class_id &&
|
||||
virBitmapParse(class_id, ',',
|
||||
virBitmapParse(class_id, 0,
|
||||
&net->class_id, CLASS_ID_BITMAP_SIZE) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Malformed 'class_id' attribute: %s"),
|
||||
|
Loading…
Reference in New Issue
Block a user