mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
ebiptablesApplyNewRules: 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
8bccb3b40c
commit
cc93d2e3f1
@ -3338,9 +3338,6 @@ ebiptablesApplyNewRules(const char *ifname,
|
||||
size_t nsubchains = 0;
|
||||
int ret = -1;
|
||||
|
||||
if (!chains_in_set || !chains_out_set)
|
||||
goto cleanup;
|
||||
|
||||
if (nrules)
|
||||
qsort(rules, nrules, sizeof(rules[0]),
|
||||
virNWFilterRuleInstSortPtr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user