mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
network: bridge: Avoid freeing uninitialized pointer on cleanup path
The cleanup path in networkBuildDhcpDaemonCommandLine could cause a crash by freeing uninitialized pointer.
This commit is contained in:
parent
0657ed2a5c
commit
b9f8a2f25e
@ -1252,7 +1252,7 @@ networkBuildDhcpDaemonCommandLine(virNetworkObjPtr network,
|
||||
int ret = -1;
|
||||
char *configfile = NULL;
|
||||
char *configstr = NULL;
|
||||
char *leaseshelper_path;
|
||||
char *leaseshelper_path = NULL;
|
||||
|
||||
network->dnsmasqPid = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user