Prevent initializing ebtables if disabled in qemu.conf

* src/qemu/qemu_conf.c: don't initialize ebtables if
  disabled
This commit is contained in:
Ryota Ozaki authored and Daniel Veillard committed 2009-11-11 12:59:54 +01:00
1 parent 4916936751
commit 6008cfc7c0
1 file changed
+1 -1
+1 -1
View File
@@ -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;