]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecurityLabelDefParseXML: Don't use 'virXPathStringLimit'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Nov 2021 16:26:40 +0000 (17:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Nov 2021 08:20:39 +0000 (09:20 +0100)
commita0e84f21b2768e1178fe90a4336f9d3b15b77403
tree5d1857de68402e27cf3125816737f040fc57fb3f
parent8f9bc6e5f65e61889cab59d38e4899d309543ea4
virSecurityLabelDefParseXML: Don't use 'virXPathStringLimit'

virXPathStringLimit doesn't give callers a way to differentiate between
the queried XPath being empty and the length limit being exceeded.

This means that callers are either overwriting the error message or
ignoring it altogether.

Move the length checks into the caller.

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