mirror of https://gitee.com/openkylin/libvirt.git
nwfilter: Fix random index in virNWFilterRuleDefDetailsFormat
An uninitialized int value was used to index an array. This can result in a segfault in nwfilterxml2xmltest.
This commit is contained in:
parent
1b747f0ded
commit
5288b2ad8e
|
@ -2375,7 +2375,7 @@ virNWFilterRuleDefDetailsFormat(virConnectPtr conn,
|
|||
const virXMLAttr2Struct *att,
|
||||
virNWFilterRuleDefPtr def)
|
||||
{
|
||||
int i, j;
|
||||
int i = 0, j;
|
||||
bool typeShown = 0;
|
||||
bool neverShown = 1;
|
||||
enum match {
|
||||
|
|
Loading…
Reference in New Issue