From: Luyao Huang Date: Wed, 4 Feb 2015 01:53:24 +0000 (+0800) Subject: conf: Properly report error when an unsupported chr device name is passed X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=de3d32407b904497fc4af48423388d2505fa5836;p=libvirt.git conf: Properly report error when an unsupported chr device name is passed Add the missing jump to thje error label. The error message shouldn't ever be triggered though as it's called only on pre-selected nodes. Signed-off-by: Luyao Huang --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 706e5d26c9..3a0b13e069 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -8609,6 +8609,7 @@ virDomainChrDefParseXML(xmlXPathContextPtr ctxt, virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unknown character device type: %s"), nodeName); + goto error; } cur = node->children;