mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00: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…
x
Reference in New Issue
Block a user