mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-10 05:31:29 +00:00
conf: error out on invalid host id
https://bugzilla.redhat.com/show_bug.cgi?id=1196503 We already check whether the host id is valid or not, add a jump to forbid invalid host id. Signed-off-by: Luyao Huang <lhuang@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com> (cherry picked from commit 719cd2182bf06196b26204a8cf88d28001b1d79b)
This commit is contained in:
parent
e41177e0f6
commit
49072785e7
@ -708,6 +708,7 @@ virNetworkDHCPHostDefParseXML(const char *networkName,
|
||||
virReportError(VIR_ERR_XML_ERROR,
|
||||
_("Invalid character '%c' in id '%s' of network '%s'"),
|
||||
*cp, id, networkName);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user