network: fix (non)update of dnsmasq config during virDomainUpdateDeviceFlags
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.

fabianfreyer/libvirt,zippy2/libvirt,crobinso/libvirt,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,libvirt/libvirt,emaste/libvirt,VenkatDatta/libvirt,datto/libvirt,iam-TJ/libvirt,libvirt/libvirt,jardasgit/libvirt,rlaager/libvirt,bjzhang/libvirt,libvirt/libvirt,taget/libvirt,crobinso/libvirt,trainstack/libvirt,datto/libvirt,emaste/libvirt,trainstack/libvirt,VenkatDatta/libvirt,taget/libvirt,iam-TJ/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,iam-TJ/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,bjzhang/libvirt,datto/libvirt,bjzhang/libvirt,nertpinx/libvirt,rlaager/libvirt,datto/libvirt,jfehlig/libvirt,elmarco/libvirt,olafhering/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,eskultety/libvirt,andreabolognani/libvirt,emaste/libvirt,cbosdo/libvirt,siboulet/libvirt-openvz,zippy2/libvirt,jardasgit/libvirt,emaste/libvirt,trainstack/libvirt,olafhering/libvirt,trainstack/libvirt,trainstack/libvirt,jfehlig/libvirt,iam-TJ/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,crobinso/libvirt,taget/libvirt,agx/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,cbosdo/libvirt,libvirt/libvirt,eskultety/libvirt,datto/libvirt,emaste/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,rlaager/libvirt,bjzhang/libvirt,taget/libvirt,jardasgit/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,olafhering/libvirt,agx/libvirt,elmarco/libvirt,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,andreabolognani/libvirt,elmarco/libvirt,agx/libvirt,cbosdo/libvirt,zippy2/libvirt,nertpinx/libvirt,andreabolognani/libvirt,emaste/libvirt,shugaoye/libvirt,nertpinx/libvirt,eskultety/libvirt,elmarco/libvirt,siboulet/libvirt-openvz,cbosdo/libvirt,nertpinx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,emaste/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,rlaager/libvirt,andreabolognani/libvirt,rlaager/libvirt,agx/libvirt,elmarco/libvirt,zippy2/libvirt,fabianfreyer/libvirt,taget/libvirt,andreabolognani/libvirt,crobinso/libvirt,agx/libvirt,cbosdo/libvirt,bjzhang/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt