Re: [libvirt] [PATCH] Prevent initializing ebtables if disabled in qemu.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 10, 2009 at 08:34:17PM -0500, Cole Robinson wrote:
> On 11/10/2009 06:32 PM, Ryota Ozaki wrote:
> > * src/qemu/qemu_conf.c: don't initialize ebtables if
> >   disabled
> > ---
> >  src/qemu/qemu_conf.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
> > index 28567b2..5f492dd 100644
> > --- a/src/qemu/qemu_conf.c
> > +++ b/src/qemu/qemu_conf.c
> > @@ -322,7 +322,7 @@ int qemudLoadDriverConfig(struct qemud_driver *driver,
> >  
> >      p = virConfGetValue (conf, "mac_filter");
> >      CHECK_TYPE ("mac_filter", VIR_CONF_LONG);
> > -    if (p) {
> > +    if (p && p->l) {
> >          driver->macFilter = p->l;
> >          if (!(driver->ebtables = ebtablesContextNew("qemu"))) {
> >              driver->macFilter = 0;
> 
> ACK

  I concur, applied :-),

   thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]