diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2015-03-11 18:55:03 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-13 12:14:40 +0100 |
commit | 1749f443d79f01c6ae1512cff63a5e02cf5149c1 (patch) | |
tree | e2bb9a74789a52dada91213982d4c27c5cc1001e | |
parent | d7c61fe15ef7f04c8ecb6724bb5dd0eae1c5e4ca (diff) |
ebtables-compat: fix rule deleting with -D in rules with no target
Before this patch, rule deleting with -D produces segfault in rules
with no target.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/nft-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index c4f5db6d..9498600e 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -620,7 +620,7 @@ static bool nft_bridge_rule_find(struct nft_family_ops *ops, struct nft_rule *r, return false; } - if (strcmp(cs->jumpto, this.jumpto) != 0) { + if (cs->jumpto != NULL && strcmp(cs->jumpto, this.jumpto) != 0) { DEBUGP("Different verdict\n"); return false; } |