]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecurityDeviceLabelDefParseXML: 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)
commitf3a8f2633951ec0b1d3e1f36ffe9d4e328993edf
tree65fddaffa7f460ba89ded2306d801ad0283fae2f
parent33f2cc0712006301370cc76500d555de3e0b0af8
virSecurityDeviceLabelDefParseXML: 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 the callers is completely ignoring the error.

Move the length check into the caller.

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