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)
xmlNodePtr cur,
xmlXPathContextPtr ctxt)
{
- char *domain;
- char *service;
- char *protocol;
- char *target;
+ char *domain = NULL;
+ char *service = NULL;
+ char *protocol = NULL;
+ char *target = NULL;
int port;
int priority;
int weight;