From de3d32407b904497fc4af48423388d2505fa5836 Mon Sep 17 00:00:00 2001 From: Luyao Huang Date: Wed, 4 Feb 2015 09:53:24 +0800 Subject: [PATCH] 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 --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) 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;