From: Peter Krempa Date: Wed, 23 Jan 2013 14:43:47 +0000 (+0100) Subject: conf: Fix usage of virBitmapParse X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf62e9953c3dde35551a0c2a91d30a294516609a;p=libvirt.git conf: Fix usage of virBitmapParse virNetworkObjUpdateParseFile used ',' as the termination character for virBitmapParse. This would break if an non-contiguous range would be parsed. --- diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index 9c35ea8e64..c93916dd1d 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -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"),