]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network_conf: Don't free uninitialized pointers while parsing DNS SRV
authorPeter Krempa <pkrempa@redhat.com>
Thu, 28 Jun 2012 21:42:50 +0000 (23:42 +0200)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 23:22:30 +0000 (19:22 -0400)
commit568e6651ba55cb5d781edb80fd5ff2ebc94825df
tree1378b5f8b612183e79a1e68d873aed12be588d0b
parentaa57eae7b15d9ff27baf12287db220ea8d3b82f0
network_conf: Don't free uninitialized pointers while parsing DNS SRV

If the user specified invalid protocol type in a network's SRV record
the error path ended up in freeing uninitialized pointers causing a
daemon crash.

*network_conf.c: virNetworkDNSSrvDefParseXML(): initialize local
                                                variables
(cherry picked from commit 96ebb4fe586512487f83b4696d20923315889796)
src/conf/network_conf.c