mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
networkStartDhcpDaemon: Check for dnsmasqCapsRefresh failure
Currently, we ignore whether dnsmasqCapsRefresh succeeds or fails. We shouldn't do that as we may generate wrong dnsmasq command line (what is done just a few lines below). Signed-off-by: Hongwei Bi <hwbi2008@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e24aec629d
commit
3a8cc9cf50
@ -1107,7 +1107,8 @@ networkStartDhcpDaemon(virNetworkDriverStatePtr driver,
|
||||
if (dctx == NULL)
|
||||
goto cleanup;
|
||||
|
||||
dnsmasqCapsRefresh(&driver->dnsmasqCaps, false);
|
||||
if (dnsmasqCapsRefresh(&driver->dnsmasqCaps, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = networkBuildDhcpDaemonCommandLine(network, &cmd, pidfile,
|
||||
dctx, driver->dnsmasqCaps);
|
||||
|
Loading…
Reference in New Issue
Block a user