]> xenbits.xensource.com Git - 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)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 28 Jun 2012 21:42:50 +0000 (23:42 +0200)
commit96ebb4fe586512487f83b4696d20923315889796
tree89a9610a839c2fdc099e9823cbd381eae45899da
parent6117c3582906a3a7484beb3700c66df2b3f1d441
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
src/conf/network_conf.c