mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
Prevent initializing ebtables if disabled in qemu.conf
* src/qemu/qemu_conf.c: don't initialize ebtables if disabled
This commit is contained in:
parent
4916936751
commit
6008cfc7c0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user