mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00: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:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user