]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainControllerDefParseXML: Return early if there's unexpectedly many elements
authorPeter Krempa <pkrempa@redhat.com>
Fri, 26 Aug 2022 11:56:48 +0000 (13:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Sep 2022 11:11:10 +0000 (13:11 +0200)
commitb61854baf278af15c26bf3895d42e09ebe40b385
tree4168a9d5b84478c9da4a534e3607da53b764dedf
parente55888d075cc1c18e8b148799be8d41568677286
virDomainControllerDefParseXML: Return early if there's unexpectedly many elements

Move some checks earlier so that they are not tucked at the back of the
block of code doing the actual parsing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c