mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
nwfilter: loop generated too many rules
The loop processing the trusted DHCP server generated one too many rules and added one final rules that accepted responses from all DHCP servers. Below patch fixes this.
This commit is contained in:
committed by
Stefan Berger
parent
1497e36db9
commit
9e995c9a23
@@ -3374,10 +3374,10 @@ ebtablesApplyDHCPOnlyRules(const char *ifname,
|
||||
|
||||
VIR_FREE(srcIPParam);
|
||||
|
||||
if (idx == num_dhcpsrvrs)
|
||||
break;
|
||||
|
||||
idx++;
|
||||
|
||||
if (idx >= num_dhcpsrvrs)
|
||||
break;
|
||||
}
|
||||
|
||||
virBufferAsprintf(&buf,
|
||||
|
||||
Reference in New Issue
Block a user