Message ID | 48b3825464a39dc18881a9058b31922395f9cf6c.1461697488.git.crobinso@redhat.com |
---|---|
State | Accepted |
Commit | 454f739f24a936aedec48c3a3ba659b374ce251a |
Headers | show |
diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index e6915ff..1f680d7 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -2070,6 +2070,12 @@ virNetworkDefParseXML(xmlXPathContextPtr ctxt) goto error; } + if (strchr(def->name, '/')) { + virReportError(VIR_ERR_XML_ERROR, + _("name %s cannot contain '/'"), def->name); + goto error; + } + /* Extract network uuid */ tmp = virXPathString("string(./uuid[1])", ctxt); if (!tmp) {