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:
Stefan Berger 2012-08-30 13:51:27 -04:00 committed by Stefan Berger
parent 1497e36db9
commit 9e995c9a23

View File

@ -3374,10 +3374,10 @@ ebtablesApplyDHCPOnlyRules(const char *ifname,
VIR_FREE(srcIPParam);
if (idx == num_dhcpsrvrs)
break;
idx++;
if (idx >= num_dhcpsrvrs)
break;
}
virBufferAsprintf(&buf,