From: Tim Wiederhake Date: Mon, 5 Jul 2021 13:40:33 +0000 (+0200) Subject: ebiptablesApplyNewRules: `virHashNew` cannot return NULL X-Git-Tag: v7.6.0-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc93d2e3f1f74d84d4642e25c6ee8a0568159136;p=thirdparty%2Flibvirt.git ebiptablesApplyNewRules: `virHashNew` cannot return NULL Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfilter_ebiptables_driver.c index 345562bab6..ec17d43c4e 100644 --- a/src/nwfilter/nwfilter_ebiptables_driver.c +++ b/src/nwfilter/nwfilter_ebiptables_driver.c @@ -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);