]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: fix (non)update of dnsmasq config during virDomainUpdateDeviceFlags
authorLaine Stump <laine@laine.org>
Fri, 14 Dec 2012 17:44:03 +0000 (12:44 -0500)
committerLaine Stump <laine@laine.org>
Fri, 14 Dec 2012 18:37:17 +0000 (13:37 -0500)
commite3802e13df9dccd047aa888dc3294ae6c1eda445
tree81c04e69da4b97846b1a4636761ad3fd3a365364
parent238dba0f9c925359cb3b8beddd8c8ae739cb4e06
network: fix (non)update of dnsmasq config during virDomainUpdateDeviceFlags

A forgotten "!" in recently-modified code at the top of
networkRefreshDaemon() meant an improper early return, which led to 1)
dnsmasq config files not being updated from the newly modified config,
and 2) dnsmasq not being sent a SIGHUP so that it could learn about
the changes to the config.

virNetworkDefGetIpByIndex() returns NULL if there are no ip objects of
the requested type, and if there are no IP elements, then dnsmasq
shouldn't be running, so we can return early. Otherwise we should
rewrite the config files and send a SIGHUP.
src/network/bridge_driver.c