]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface_conf.c: don't use a negative value as allocation size
authorJim Meyering <meyering@redhat.com>
Tue, 2 Feb 2010 19:54:01 +0000 (20:54 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 3 Feb 2010 14:47:04 +0000 (15:47 +0100)
commitfe1183a7cd536e625cbdce0babf1c54ed1d558ac
tree5b89fd95f7ef1ea5362954af3f25f2efbbd798a7
parent71c865f4d2826fa4907a104cfe4ff4b19cad44bf
interface_conf.c: don't use a negative value as allocation size

* src/conf/interface_conf.c (virInterfaceDefParseProtoIPv4): If
virXPathNodeSet returns -1, indicate failure by returning -1 right away.
(virInterfaceDefParseProtoIPv6): Likewise.
src/conf/interface_conf.c