mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
Trivial fix: Add braces to for statement to avoid crashes
I am adding braces around the for statement that are now needed to due the new sa_assert immediately following the for statement.
This commit is contained in:
parent
2d73466f03
commit
c41873f40e
@ -2880,7 +2880,7 @@ ebiptablesApplyNewRules(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
if (ebiptablesExecCLI(&buf, &cli_status) || cli_status != 0)
|
if (ebiptablesExecCLI(&buf, &cli_status) || cli_status != 0)
|
||||||
goto tear_down_tmpebchains;
|
goto tear_down_tmpebchains;
|
||||||
|
|
||||||
for (i = 0; i < nruleInstances; i++)
|
for (i = 0; i < nruleInstances; i++) {
|
||||||
sa_assert (inst);
|
sa_assert (inst);
|
||||||
switch (inst[i]->ruleType) {
|
switch (inst[i]->ruleType) {
|
||||||
case RT_EBTABLES:
|
case RT_EBTABLES:
|
||||||
@ -2895,6 +2895,7 @@ ebiptablesApplyNewRules(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
haveIp6tables = true;
|
haveIp6tables = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ebiptablesExecCLI(&buf, &cli_status) || cli_status != 0)
|
if (ebiptablesExecCLI(&buf, &cli_status) || cli_status != 0)
|
||||||
goto tear_down_tmpebchains;
|
goto tear_down_tmpebchains;
|
||||||
|
Loading…
Reference in New Issue
Block a user