mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +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
0c209b39c9
commit
1ae0067c77
@ -208,8 +208,8 @@ virNWFilterRuleDefToRuleInst(virNWFilterDef *def,
|
||||
ruleinst->chainPriority = def->chainPriority;
|
||||
ruleinst->def = rule;
|
||||
ruleinst->priority = rule->priority;
|
||||
if (!(ruleinst->vars = virHashNew(virNWFilterVarValueHashFree)))
|
||||
goto cleanup;
|
||||
ruleinst->vars = virHashNew(virNWFilterVarValueHashFree);
|
||||
|
||||
if (virNWFilterHashTablePutAll(vars, ruleinst->vars) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user