mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
virNWFilterRuleDefToRuleInst: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
953c7e024a
commit
8bccb3b40c
@ -261,8 +261,8 @@ virNWFilterRuleDefToRuleInst(virNWFilterDef *def,
|
|||||||
ruleinst->chainPriority = def->chainPriority;
|
ruleinst->chainPriority = def->chainPriority;
|
||||||
ruleinst->def = rule;
|
ruleinst->def = rule;
|
||||||
ruleinst->priority = rule->priority;
|
ruleinst->priority = rule->priority;
|
||||||
if (!(ruleinst->vars = virHashNew(virNWFilterVarValueHashFree)))
|
ruleinst->vars = virHashNew(virNWFilterVarValueHashFree);
|
||||||
goto cleanup;
|
|
||||||
if (virNWFilterHashTablePutAll(vars, ruleinst->vars) < 0)
|
if (virNWFilterHashTablePutAll(vars, ruleinst->vars) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user